diff options
| author | ilotterytea <iltsu@alright.party> | 2025-07-27 13:42:23 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-07-27 13:42:23 +0500 |
| commit | 70e511524b1f19aa221e2d47654c64c326054a95 (patch) | |
| tree | ab00dc2bec08eac080254609e276123259f2d0ac /public | |
| parent | 7cd1eda767ab3396d42a31e3a5fd95ee1ac546e3 (diff) | |
fix: random files might not pop out
Diffstat (limited to 'public')
| -rw-r--r-- | public/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index 22189cb..cdb53ad 100644 --- a/public/index.php +++ b/public/index.php @@ -18,7 +18,7 @@ if (FILE_CATALOG_RANDOM && isset($_GET['random'])) { foreach (FILE_CATALOG_INCLUDE_MIMETYPES as $k) { array_push($mime_filter, "mime LIKE '$k'"); } - $mime_filter = implode(' AND ', $mime_filter); + $mime_filter = '(' . implode(' OR ', $mime_filter) . ')'; } $in = !empty($random_viewed_files) ? (str_repeat('?,', count($random_viewed_files) - 1) . '?') : ''; |
