From ca4e0cbb1471e837197cd2ed30b1ea3c274ab41d Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Sat, 13 Feb 2021 00:51:39 +0200 Subject: Upload.php now can upload in direcotires other than root --- php/database.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'php/database.php') diff --git a/php/database.php b/php/database.php index bb8cfa4..1e76d77 100644 --- a/php/database.php +++ b/php/database.php @@ -337,8 +337,10 @@ require_once "node.php"; { error_log("could not exedude dir sql statement in create_file_node"); return "error"; - } - if(($dir=$dir_prep->fetch(PDO::FETCH_ASSOC))==false) + } + + $dir=$dir_prep->fetch(PDO::FETCH_ASSOC); + if($dir == false) { error_log("create_file_node dir isnt a directory"); return "error"; -- cgit v1.2.3