com web/php: Quiet warnings.: include/footer.inc
| From: | Adam Harvey | Date: | Mon, 30 Mar 2015 19:25:54 +0000 |
| Subject: | com web/php: Quiet warnings.: include/footer.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-20985@lists.php.net to get a copy of this message | ||
Commit: 461a0fb19c1e7f8dd33656d04f7efe7ba9bf2bb7
Author: Adam Harvey <aharvey@php.net> Mon, 30 Mar 2015 12:25:54 -0700
Parents: 3360aa8c1d906cb2c2474d16d89e26866eac279e
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=461a0fb19c1e7f8dd33656d04f7efe7ba9bf2bb7
Log:
Quiet warnings.
Changed paths:
M include/footer.inc
Diff:
diff --git a/include/footer.inc b/include/footer.inc
index d198a95..046379b 100644
--- a/include/footer.inc
+++ b/include/footer.inc
@@ -7,11 +7,11 @@
}
?>
-<?php if ($config['related_menu'] || $config['related_menu_deprecated']):
?>
+<?php if (!empty($config['related_menu']) ||
!empty($config['related_menu_deprecated'])): ?>
<aside class='layout-menu'>
<ul class='parent-menu-list'>
- <?php if ($config['related_menu']): ?>
+ <?php if (!empty($config['related_menu'])): ?>
<?php foreach($config['related_menu'] as $section): ?>
<li>
<a href="<?php echo $section['link']; ?>"><?php
echo $section['title']; ?></a>
@@ -35,7 +35,7 @@
<?php endforeach; ?>
<?php endif; ?>
- <?php if ($config['related_menu_deprecated']): ?>
+ <?php if (!empty($config['related_menu_deprecated'])): ?>
<li>
<span class="header">Deprecated</span>
<ul class="child-menu-list">