diff options
author | thomascube <thomas@roundcube.net> | 2011-01-04 22:13:43 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-01-04 22:13:43 +0000 |
commit | 965ed0ca7f5e07dc6d7d7e08ad8215b7c1c63b83 (patch) | |
tree | 29db048f42e525e7f8668d58646495172071edbf /program/include | |
parent | 6bdb6102c06c605d18f5d2cfba8ac806875ae13a (diff) |
Silently ignore unknown classes in rcube_autoload (#1487109)
Diffstat (limited to 'program/include')
-rwxr-xr-x | program/include/iniset.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/program/include/iniset.php b/program/include/iniset.php index 5ef067f65..b5ca1a8cf 100755 --- a/program/include/iniset.php +++ b/program/include/iniset.php @@ -105,7 +105,14 @@ function rcube_autoload($classname) ), $classname ); - include $filename. '.php'; + + if ($fp = @fopen("$filename.php", 'r', true)) { + fclose($fp); + include_once("$filename.php"); + return true; + } + + return false; } spl_autoload_register('rcube_autoload'); |