forked from extern/egroupware
fixing warnings generated by php 5.3.8 is_a($obj) trying to autoload huge strings
This commit is contained in:
parent
8202298db5
commit
988123bb73
@ -1438,6 +1438,9 @@ function try_lang($key,$vars=null)
|
||||
*/
|
||||
function __autoload($class)
|
||||
{
|
||||
// fixing warnings generated by php 5.3.8 is_a($obj) trying to autoload huge strings
|
||||
if (strlen($class) > 40) return;
|
||||
|
||||
$components = explode('_',$class);
|
||||
$app = array_shift($components);
|
||||
// classes using the new naming schema app_class_name, eg. admin_cmd
|
||||
|
Loading…
Reference in New Issue
Block a user