aboutsummaryrefslogtreecommitdiff
path: root/scripts/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/search.php')
-rw-r--r--scripts/search.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/search.php b/scripts/search.php
index 4de514f..d7d1b64 100644
--- a/scripts/search.php
+++ b/scripts/search.php
@@ -9,9 +9,7 @@ set_include_path(
spl_autoload_register(
function ($class) {
$file = str_replace(array('\\', '_'), '/', $class) . '.php';
- $hdl = @fopen($file, 'r', true);
- if ($hdl !== false) {
- fclose($hdl);
+ if (stream_resolve_include_path($file)) {
require $file;
}
}