only when search

This commit is contained in:
Hugo Sampaio 2024-05-13 17:26:23 -03:00
parent cdf4767590
commit 9e758b1edd
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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