mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +01:00
fixing warnings generated by php 5.3.8 is_a($obj) trying to autoload huge strings
This commit is contained in:
parent
395e247413
commit
41940f1f20
@ -1437,6 +1437,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