diff options
| -rwxr-xr-x | www/functions/func_content.php | 2 | ||||
| -rwxr-xr-x | www/functions/func_select.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/www/functions/func_content.php b/www/functions/func_content.php index c750554..e24ea34 100755 --- a/www/functions/func_content.php +++ b/www/functions/func_content.php @@ -94,7 +94,7 @@ function print_empty_folder($content){ $wrong_folder = $content[$length-1]; $working_path[0] = $wrong_folder; // initialize empty array - for($i=0; $i<$length-2, $i++){ + for($i=0; $i<$length-2; $i++){ $working_path[$i] = $content[$i]; } diff --git a/www/functions/func_select.php b/www/functions/func_select.php index c19efe7..af7b239 100755 --- a/www/functions/func_select.php +++ b/www/functions/func_select.php @@ -4,7 +4,7 @@ function select_file_id($db, $owner, $folder_path){ if($_SESSION["login"] && $_SESSION["userid"] == $owner){ // TODO: Check if loged in user really the user who does the query - fix 12.3.14 $share=""; // to print all files, even hidden ones } else { - $share ="AND share='PUBLIC'"; // just use files with the correct permissions + $share =" AND share='PUBLIC'"; // just use files with the correct permissions } $folder_array_unsafe = explode("/",$folder_path); |
