Skip to content
Snippets Groups Projects
Commit 7ea43158 authored by tbrehm's avatar tbrehm
Browse files

Fixed a warning when no faq categories are defined.

parent 04e09afc
No related branches found
No related tags found
2 merge requests!46Master,!21Master
......@@ -56,11 +56,12 @@ if($_SESSION['s']['user']['typ'] == 'admin') {
$sql = "SELECT * FROM help_faq_sections";
$res = $app->db->queryAllRecords($sql);
//* all the content sections
foreach($res as $v)
{
if(is_array($res)) {
foreach($res as $v) {
$itemsfaq[] = array( 'title' => $v['hfs_name'],
'target' => 'content',
'link' => 'help/faq_list.php?hfs_id='.$v['hfs_id']);
}
}
$module['nav'][] = array( 'title' => 'FAQ',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment