mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 15:00:07 +01:00
Add check to ensure the app hook was installed, if not don't dump errors about
the function not existing
This commit is contained in:
parent
ffd4bfe29c
commit
7d1f940b00
@ -215,7 +215,14 @@
|
|||||||
break;
|
break;
|
||||||
case 'hook':
|
case 'hook':
|
||||||
$newval = ereg_replace(' ','_',$newval);
|
$newval = ereg_replace(' ','_',$newval);
|
||||||
|
if(function_exists($newval))
|
||||||
|
{
|
||||||
$t->set_var($value,$newval($current_config));
|
$t->set_var($value,$newval($current_config));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$t->set_var($value,'');
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$t->set_var($value,'');
|
$t->set_var($value,'');
|
||||||
|
Loading…
Reference in New Issue
Block a user