diff --git a/client_documents.php b/client_documents.php index e7958fd9..77b1fb23 100644 --- a/client_documents.php +++ b/client_documents.php @@ -33,7 +33,7 @@ if (!empty($_GET['folder_id'])) { // Set Folder Location Var used when creating folders $folder_location = 0; -if ($folder == 0) { +if ($folder == 0 && $_GET["q"]) { $sql = mysqli_query( $mysqli, "SELECT SQL_CALC_FOUND_ROWS * FROM documents diff --git a/client_files.php b/client_files.php index b6d871ef..17f75a48 100644 --- a/client_files.php +++ b/client_files.php @@ -39,7 +39,7 @@ if ($view == 1) { // Set Folder Location Var used when creating folders $folder_location = 1; -if ($folder == 0) { +if ($folder == 0 && $_GET["q"]) { $sql = mysqli_query( $mysqli, "SELECT SQL_CALC_FOUND_ROWS * FROM files