fixing some warnings

This commit is contained in:
Ralf Becker 2010-11-10 08:26:41 +00:00
parent 9f13b381e0
commit 43d2411ba1
2 changed files with 3 additions and 3 deletions

View File

@ -1601,7 +1601,7 @@ class etemplate extends boetemplate
break; break;
case 'image': // size: [link],[link_target],[imagemap],[link_popup],[id] case 'image': // size: [link],[link_target],[imagemap],[link_popup],[id]
$image = $value != '' ? $value : $name; $image = $value != '' ? $value : $name;
if (!is_array($image)) list($app,$img) = explode('/',$image,2); if (is_string($image)) list($app,$img) = explode('/',$image,2);
if (!$app || !$img || !is_dir(EGW_SERVER_ROOT.'/'.$app) || strpos($img,'/')!==false) if (!$app || !$img || !is_dir(EGW_SERVER_ROOT.'/'.$app) || strpos($img,'/')!==false)
{ {
$img = $image; $img = $image;
@ -2136,7 +2136,7 @@ class etemplate extends boetemplate
$value = ''; // blur-values is equal to emtpy $value = ''; // blur-values is equal to emtpy
} }
//echo "<p>process_show($this->name) loop was ".self::$loop.", $type: $form_name = ".array2string($value)."</p>\n"; //echo "<p>process_show($this->name) loop was ".self::$loop.", $type: $form_name = ".array2string($value)."</p>\n";
list($type,$sub) = explode('-',$type); if (is_string($type)) list($type,$sub) = explode('-',$type);
switch ($type) switch ($type)
{ {
case 'ext': case 'ext':

View File

@ -186,7 +186,7 @@ class solangfile
{ {
$reg_expr = '/('.implode('|',array_keys($this->functions)).")[ \t]*\([ \t]*(.*)$/i"; $reg_expr = '/('.implode('|',array_keys($this->functions)).")[ \t]*\([ \t]*(.*)$/i";
define('SEP',filesystem_separator()); define('SEP',filesystem_separator());
$d=dir($fd); if (!($d=dir($fd))) return;
while ($fn=$d->read()) while ($fn=$d->read())
{ {
if (@is_dir($fd.$fn.SEP)) if (@is_dir($fd.$fn.SEP))