mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
fixing some warnings
This commit is contained in:
parent
9f13b381e0
commit
43d2411ba1
@ -1601,7 +1601,7 @@ class etemplate extends boetemplate
|
||||
break;
|
||||
case 'image': // size: [link],[link_target],[imagemap],[link_popup],[id]
|
||||
$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)
|
||||
{
|
||||
$img = $image;
|
||||
@ -2136,7 +2136,7 @@ class etemplate extends boetemplate
|
||||
$value = ''; // blur-values is equal to emtpy
|
||||
}
|
||||
//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)
|
||||
{
|
||||
case 'ext':
|
||||
|
@ -186,7 +186,7 @@ class solangfile
|
||||
{
|
||||
$reg_expr = '/('.implode('|',array_keys($this->functions)).")[ \t]*\([ \t]*(.*)$/i";
|
||||
define('SEP',filesystem_separator());
|
||||
$d=dir($fd);
|
||||
if (!($d=dir($fd))) return;
|
||||
while ($fn=$d->read())
|
||||
{
|
||||
if (@is_dir($fd.$fn.SEP))
|
||||
|
Loading…
Reference in New Issue
Block a user