Undefined variable: url_search when navigating to the list of wiki categories

Whoops\Exception\ErrorException thrown with message "Undefined variable: list"

Stacktrace:
# 4 Whoops\Exception\ErrorException in /var/www/enginegp/system/acp/sections/wiki/cats.php:10
# 3 Whoops\Run:handleError in /var/www/enginegp/system/acp/sections/wiki/cats.php:10
# 2 include in /var/www/enginegp/system/acp/engine/wiki.php:30
# 1 include in /var/www/enginegp/system/acp/distributor.php:86
# 0 include in /var/www/enginegp/acp/index.php:47
This commit is contained in:
Sergei Solovev 2024-05-27 15:07:17 +03:00
parent 3657f0cdd3
commit c12ad02d9d

View file

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