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:
parent
3657f0cdd3
commit
c12ad02d9d
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue