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:
commit
ed8aacaa8f
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