mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 10:23:28 +01:00
fixed PHP 5.4 Warning: Illegal string offset
This commit is contained in:
parent
f80477e938
commit
28de768d68
@ -116,7 +116,7 @@ class link_widget
|
||||
{
|
||||
$extension_data['type'] = $type = $cell['type'];
|
||||
$extension_data['needed'] = $cell['needed'];
|
||||
$help = $cell['help'] ? ($value['help'] ? $value['help'] : $cell['help']) : lang('view this linked entry in its application');
|
||||
$help = $cell['help'] ? (is_array($value) && !empty($value['help']) ? $value['help'] : $cell['help']) : lang('view this linked entry in its application');
|
||||
|
||||
if ((in_array($type,array('link-to','link-add','link-entry')) && !$value) && ($cell['readonly'] || $readonlys))
|
||||
{
|
||||
|
@ -481,7 +481,7 @@ class egw_link extends solink
|
||||
{
|
||||
foreach($targets as $link)
|
||||
{
|
||||
$app_ids[$link['app']][] = $link['id'];
|
||||
if (is_array($link)) $app_ids[$link['app']][] = $link['id'];
|
||||
}
|
||||
}
|
||||
foreach($app_ids as $app => $a_ids)
|
||||
|
@ -223,7 +223,7 @@
|
||||
}
|
||||
$prefs[$var] = get_magic_quotes_gpc() ? stripslashes($value) : $value;
|
||||
|
||||
if($notifies[$var]) // need to translate the key-words back
|
||||
if(is_array($notifies) && isset($notifies[$var])) // need to translate the key-words back
|
||||
{
|
||||
$prefs[$var] = $GLOBALS['egw']->preferences->lang_notify($prefs[$var],$notifies[$var],True);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user