kill php5.2 warnings

This commit is contained in:
Cornelius Weiß 2006-12-02 11:03:54 +00:00
parent 56fb1e7052
commit 8e647edc80

View File

@ -69,7 +69,7 @@
{ {
$tname = &$name['name']; $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; (is_array($load_via) ? $load_via['name'] : $load_via).'.':'').$tname;
if (empty($tname) || !$this->read($name,'','',0,'',$load_via)) if (empty($tname) || !$this->read($name,'','',0,'',$load_via))
@ -147,7 +147,7 @@
function expand_name($name,$c,$row,$c_='',$row_='',$cont='') function expand_name($name,$c,$row,$c_='',$row_='',$cont='')
{ {
$is_index_in_content = $name[0] == '@'; $is_index_in_content = $name[0] == '@';
if (strstr($name,'$') !== False) if (@strstr($name,'$') !== False)
{ {
if (!$cont) if (!$cont)
{ {
@ -206,7 +206,7 @@
} }
$Ok = False; $Ok = False;
$pat = $org_idx; $pat = $org_idx;
while (!$Ok && ($pat = strstr($pat,'$'))) while (!$Ok && ($pat = @strstr($pat,'$')))
{ {
$pat = substr($pat,$pat[1] == '{' ? 2 : 1); $pat = substr($pat,$pat[1] == '{' ? 2 : 1);