openrat-cms

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

commit b3e70718167e35b409a1673f6dcc041890e8572e
parent 69ba0aa162b9a8076959fb14b767838be87aa62f
Author: dankert <devnull@localhost>
Date:   Thu,  5 Apr 2007 21:03:53 +0200

Vermeiden einer Laufzeit-"Notice".

Diffstat:
themes/default/include/html/frameset-page.inc.php | 2+-
themes/default/include/html/input.inc.php | 5+++--
themes/default/include/html/list.inc.php | 2+-
themes/default/include/html/page.inc.php | 2+-
themes/default/include/html/table.inc.php | 4+++-
themes/default/include/html/window.inc.php | 7+++++--
6 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/themes/default/include/html/frameset-page.inc.php b/themes/default/include/html/frameset-page.inc.php @@ -7,7 +7,7 @@ <link rel="top" title="Start" href="./" /> <link rel="author" title="Homepage" href="http://www.openrat.de" /> - <?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) + <?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) { ?> <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /><?php diff --git a/themes/default/include/html/input.inc.php b/themes/default/include/html/input.inc.php @@ -1 +1,2 @@ -<input id="id_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" onxxxMouseOver="this.focus();" />- \ No newline at end of file +<?php if(!isset($attr_default)) $attr_default=''; +?><input id="id_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" onxxxMouseOver="this.focus();" />+ \ No newline at end of file diff --git a/themes/default/include/html/list.inc.php b/themes/default/include/html/list.inc.php @@ -3,7 +3,7 @@ $attr_list_tmp_value = $attr_value; $attr_list_extract = ($attr_extract==true); - if ( !is_array($$attr_list) ) + if ( !isset($$attr_list) || !is_array($$attr_list) ) $$attr_list = array(); // die('not an array in list,var='.$attr_list); // Html::debug($$attr_list); diff --git a/themes/default/include/html/page.inc.php b/themes/default/include/html/page.inc.php @@ -6,7 +6,7 @@ <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> -<?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) +<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) { ?> <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> diff --git a/themes/default/include/html/table.inc.php b/themes/default/include/html/table.inc.php @@ -1,5 +1,8 @@ <?php $coloumn_widths=array(); + $row_classes = array(''); + $column_classes= array(''); + if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); @@ -20,7 +23,6 @@ if (!empty($attr_columnclasses)) { $column_classes = explode(',',$attr_columnclasses); - unset($attr['columnclasses']); } diff --git a/themes/default/include/html/window.inc.php b/themes/default/include/html/window.inc.php @@ -22,7 +22,7 @@ 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) ) + if ( !isset($path) || is_array($path) ) $path = array(); foreach( $path as $pathElement) { @@ -41,7 +41,10 @@ </td> </tr> <tr><td class="subaction"> - <?php foreach( $windowMenu as $menu ) + + <?php if ( !isset($windowMenu) || is_array($windowMenu) ) + $windowMenu = array(); + foreach( $windowMenu as $menu ) { ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php }