F diff --git a/php/database.php b/php/database.php --- a/php/database.php +++ b/php/database.phpreturn NULL;}$ret= $statement->fetch(PDO::FETCH_ASSOC);- return $ret["id"];+ if(isset($ret["id"]))+ {+ return $ret["id"];+ }else+ {+ return NULL;+ }}/* I think this only makes sense if node is a dir*//* returns assoc array of nodes*//*give premissions*/$id=$this->get_node_with_code($code_name);- if($id!=NULL)+ if($id==NULL){error_log("created a dangling directory but couldn't find it afterward. Fatal error!");exit(1);