Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
7ea43158
Commit
7ea43158
authored
Sep 27, 2010
by
tbrehm
Browse files
Fixed a warning when no faq categories are defined.
parent
04e09afc
Changes
1
Show whitespace changes
Inline
Side-by-side
interface/web/help/lib/module.conf.php
View file @
7ea43158
...
@@ -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'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment