aboutsummaryrefslogtreecommitdiffstats
path: root/php/database.php
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-02-13 00:51:39 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-02-13 00:51:39 +0200
commitca4e0cbb1471e837197cd2ed30b1ea3c274ab41d (patch)
treef8707e1aeff617916fc8684b418e7e28d56b08a9 /php/database.php
parenta218bdd5fc29f4dab9f68c4eb9173db0627046c1 (diff)
downloadfileup-ca4e0cbb1471e837197cd2ed30b1ea3c274ab41d.tar.gz
Upload.php now can upload in direcotires other than root
Diffstat (limited to 'php/database.php')
-rw-r--r--php/database.php6
1 files changed, 4 insertions, 2 deletions
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";