summaryrefslogtreecommitdiff
path: root/program/include/iniset.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/iniset.php')
-rwxr-xr-xprogram/include/iniset.php9
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');