mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02: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;
|
||||
case 'hook':
|
||||
$newval = ereg_replace(' ','_',$newval);
|
||||
if(function_exists($newval))
|
||||
{
|
||||
$t->set_var($value,$newval($current_config));
|
||||
}
|
||||
else
|
||||
{
|
||||
$t->set_var($value,'');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$t->set_var($value,'');
|
||||
|
Loading…
x
Reference in New Issue
Block a user