summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorus32014-09-22 20:03:16 +0200
committerHorus32014-09-22 20:03:16 +0200
commit53a944ea8047dad64a4835c623df306a6d161b8e (patch)
tree0e5982c8243f4e5a4d1bd2e98959a876fc948eba
parent5154237d31aff60b6accfda114657596dd85f05f (diff)
downloadvfs-53a944ea8047dad64a4835c623df306a6d161b8e.tar.gz
typo
-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