From 8e647edc80022d2bc29de7aca8302c9b26c8e9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Sat, 2 Dec 2006 11:03:54 +0000 Subject: [PATCH] kill php5.2 warnings --- etemplate/inc/class.boetemplate.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etemplate/inc/class.boetemplate.inc.php b/etemplate/inc/class.boetemplate.inc.php index 64af516feb..eb266645e9 100644 --- a/etemplate/inc/class.boetemplate.inc.php +++ b/etemplate/inc/class.boetemplate.inc.php @@ -69,7 +69,7 @@ { $tname = &$name['name']; } - $tname = (strstr($tname,'.') === False && !empty($tname) ? + $tname = (@strstr($tname,'.') === False && !empty($tname) ? (is_array($load_via) ? $load_via['name'] : $load_via).'.':'').$tname; if (empty($tname) || !$this->read($name,'','',0,'',$load_via)) @@ -147,7 +147,7 @@ function expand_name($name,$c,$row,$c_='',$row_='',$cont='') { $is_index_in_content = $name[0] == '@'; - if (strstr($name,'$') !== False) + if (@strstr($name,'$') !== False) { if (!$cont) { @@ -206,7 +206,7 @@ } $Ok = False; $pat = $org_idx; - while (!$Ok && ($pat = strstr($pat,'$'))) + while (!$Ok && ($pat = @strstr($pat,'$'))) { $pat = substr($pat,$pat[1] == '{' ? 2 : 1);