mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 05:29:13 +01:00
checking if apparray exist in __autoload, before looping through
This commit is contained in:
parent
cc6f013f6f
commit
85c7be0259
@ -1327,6 +1327,7 @@ function __autoload($class)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (is_array($GLOBALS['egw_info']['apps'])) {
|
||||||
foreach($GLOBALS['egw_info']['apps'] as $lapp => $appvalue)
|
foreach($GLOBALS['egw_info']['apps'] as $lapp => $appvalue)
|
||||||
{
|
{
|
||||||
if (file_exists($file = EGW_INCLUDE_ROOT.'/'.$lapp.'/inc/class.'.$class.'.inc.php'))
|
if (file_exists($file = EGW_INCLUDE_ROOT.'/'.$lapp.'/inc/class.'.$class.'.inc.php'))
|
||||||
@ -1337,6 +1338,7 @@ function __autoload($class)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fail a little bit more gracefully then an uncought exception
|
* Fail a little bit more gracefully then an uncought exception
|
||||||
|
Loading…
Reference in New Issue
Block a user