mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +01:00
fixed fatal error in soetemplate called by editor, if etemplate is switched to etemplate_new
This commit is contained in:
parent
2bec937130
commit
8f52e2ca3c
@ -1232,7 +1232,7 @@ class soetemplate
|
|||||||
case 'template':
|
case 'template':
|
||||||
if (!isset($widget['obj']) && $widget['name'][0] != '@')
|
if (!isset($widget['obj']) && $widget['name'][0] != '@')
|
||||||
{
|
{
|
||||||
$widget['obj'] = new etemplate;
|
$widget['obj'] = new etemplate_old;
|
||||||
if (!$widget['obj']->read($widget['name'])) $widget['obj'] = false;
|
if (!$widget['obj']->read($widget['name'])) $widget['obj'] = false;
|
||||||
}
|
}
|
||||||
if (!is_object($widget['obj'])) break; // cant descent into template
|
if (!is_object($widget['obj'])) break; // cant descent into template
|
||||||
|
Loading…
Reference in New Issue
Block a user