openrat-cms

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

commit 506159f5343aab4d4ac80e9bf5dcc57e58c1f706
parent b3e70718167e35b409a1673f6dcc041890e8572e
Author: dankert <devnull@localhost>
Date:   Thu,  5 Apr 2007 21:20:34 +0200

Vermeiden einer Laufzeit-"Notice".

Diffstat:
themes/default/include/html/frameset-page.inc.php | 2+-
themes/default/include/html/link.inc.php | 5+++++
themes/default/include/html/page.inc.php | 2+-
themes/default/include/html/table.inc.php | 3+++
4 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/themes/default/include/html/frameset-page.inc.php b/themes/default/include/html/frameset-page.inc.php @@ -2,7 +2,7 @@ <html> <!-- $Id$ --> <head> - <title><?php echo $title ?> - <?php echo $cms_title ?></title> + <title><?php echo @$title ?> - <?php echo $cms_title ?></title> <link rel="shortcut icon" href="<?php echo $image_dir.'favicon.ico' ?>" /> <link rel="top" title="Start" href="./" /> <link rel="author" title="Homepage" href="http://www.openrat.de" /> diff --git a/themes/default/include/html/link.inc.php b/themes/default/include/html/link.inc.php @@ -1,4 +1,9 @@ <?php + if(empty($attr_class)) + $attr_class=''; + if(empty($attr_title)) + $attr_title = ''; + if(!empty($attr_url)) $tmp_url = $attr_url; else diff --git a/themes/default/include/html/page.inc.php b/themes/default/include/html/page.inc.php @@ -9,7 +9,7 @@ <?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']) ?>" /> + <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/table.inc.php b/themes/default/include/html/table.inc.php @@ -3,6 +3,9 @@ $row_classes = array(''); $column_classes= array(''); + if(empty($attr_class)) + $attr_class=''; + if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths);