openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit d514eea60cce17187d0e4a8da8fa24baf1e22a68
parent af0589339b224ea8f847f2c422d89dc71d9cf874
Author: dankert <devnull@localhost>
Date:   Tue, 20 Feb 2007 23:35:53 +0100

Warnungen in "foreach" vermeiden.

Diffstat:
themes/default/include/html/window.inc.php | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/themes/default/include/html/window.inc.php b/themes/default/include/html/window.inc.php @@ -22,6 +22,8 @@ echo '<tr><td class="menu">'; if ( !empty($attr_icon) ) echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement);