summaryrefslogtreecommitdiff
path: root/public_html/class
diff options
context:
space:
mode:
Diffstat (limited to 'public_html/class')
-rw-r--r--public_html/class/vfsdata.php2
-rw-r--r--public_html/class/vfsuser.php6
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();
}