Commit 7ea43158 authored by tbrehm's avatar tbrehm
Browse files

Fixed a warning when no faq categories are defined.

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