diff options
| author | Horus3 | 2014-09-22 20:28:25 +0200 |
|---|---|---|
| committer | Horus3 | 2014-09-22 20:28:25 +0200 |
| commit | 9e1b66f564659de67f8eb6c44b12ef0050c31970 (patch) | |
| tree | ca5e661962ec9168bb6edc8de0a5e911c96ecfcb /public_html/class | |
| parent | 9c814f9b2859ea41ee18230a32008bb757d10ef3 (diff) | |
| download | vfs-master.tar.gz | |
Diffstat (limited to 'public_html/class')
| -rw-r--r-- | public_html/class/vfsdata.php | 2 | ||||
| -rw-r--r-- | public_html/class/vfsuser.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/public_html/class/vfsdata.php b/public_html/class/vfsdata.php index 92d9745..05fced6 100644 --- a/public_html/class/vfsdata.php +++ b/public_html/class/vfsdata.php @@ -62,7 +62,7 @@ class vfsdata { $length = $tmp_length; - for ( $i=0; $i<$length, $i++ ) { + 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]); $parentdir_db = $vfsdb->doQuery($sql); diff --git a/public_html/class/vfsuser.php b/public_html/class/vfsuser.php index c0bc83f..761d149 100644 --- a/public_html/class/vfsuser.php +++ b/public_html/class/vfsuser.php @@ -75,9 +75,9 @@ class vfsuser { } # check if valid user - publlic function isValidUser(){ + public function isValidUser(){ if( ( is_bool($this->query) && ! $this->query ) || is_null($this->query) ) - return false + return false; return true; } @@ -100,7 +100,7 @@ class vfsuser { $this->login = true; # start a session if needed - if ( session_status() != PHP_SESSION_ACTIVE ) + if ( session_status() != PHP_SESSION_ACTIVE ) { session_name(VFS_SESSION); session_start(); } |
