summaryrefslogtreecommitdiff
path: root/public_html
diff options
context:
space:
mode:
Diffstat (limited to 'public_html')
-rw-r--r--public_html/class/vfsdata.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/public_html/class/vfsdata.php b/public_html/class/vfsdata.php
index 1d35384..b92bbac 100644
--- a/public_html/class/vfsdata.php
+++ b/public_html/class/vfsdata.php
@@ -62,7 +62,7 @@ class vfsdata {
return $parentdir;
for ( $i=0; $i<$length, $i++ ) {
- $sql = $vfsdb->prepare("SELECT id, parent FROM files WHERE owner = %d AND parent = %d AND name = %s ".$visibility. ";", $this->userid, $parentdir, $folder[$i]);
+ $sql = $vfsdb->prepare("SELECT id, parent FROM files WHERE owner = %d AND parent = %d AND name = %s " . $visibility . ";", $this->userid, $parentdir, $folder[$i]);
$parentdir_db = $vfsdb->doQuery($sql);
$prim_id = $parentdir_db->fetch_array(MYSQLI_ASSOC);
@@ -70,7 +70,7 @@ class vfsdata {
if ( $parentdir != $prim_id["parent"] )
return false;
- $parentdir = $prim_id["parent"];
+ $parentdir = $prim_id["id"];
}
# returns the primary key from the last entry in the $folder array