Merge pull request #102 from EngineGPDev/Undefined-variable-url_search-when-navigating-to-the-list-of-wiki-categories

Undefined variable: url_search when navigating to the list of wiki ca…
This commit is contained in:
Sergei Solovev 2024-05-27 15:08:58 +03:00 committed by GitHub
commit ed8aacaa8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,6 +15,9 @@ if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
$cats = $sql->query('SELECT `id`, `name`, `sort` FROM `wiki_category` ORDER BY `id` ASC');
$list = null;
while ($cat = $sql->get($cats)) {
$sql->query('SELECT `name` FROM `wiki` WHERE `cat`="' . $cat['id'] . '"');
$wiki = $sql->num();