summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2010-07-30 13:36:18 +0200
committerRobin Appelman <icewind1991@gmail.com>2010-07-30 13:36:18 +0200
commit6642d4af6ff44c92e91e347c8ea392efac28f842 (patch)
tree178e00842e5360ebdd58cbaaf16e7f3e4a71e3e6 /inc
parent2a782097284950e85876e74c2eecd868e6795335 (diff)
downloadnextcloud-server-6642d4af6ff44c92e91e347c8ea392efac28f842.tar.gz
nextcloud-server-6642d4af6ff44c92e91e347c8ea392efac28f842.zip
fix warnings given by MDB2 if opendir is restricted by the host
Diffstat (limited to 'inc')
-rw-r--r--inc/MDB2.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/MDB2.php b/inc/MDB2.php
index aa4259b9db7..faf405b4112 100644
--- a/inc/MDB2.php
+++ b/inc/MDB2.php
@@ -960,8 +960,8 @@ class MDB2
global $SERVERROOT;
if (!@ini_get('safe_mode')) {
$dirs = explode(PATH_SEPARATOR, ini_get('include_path'));
- $dirs[]=$SERVERROOT;
- $dirs[]=$SERVERROOT. DIRECTORY_SEPARATOR .'inc';
+ array_unshift($dirs,$SERVERROOT);
+ array_unshift($dirs,$SERVERROOT. DIRECTORY_SEPARATOR .'inc');
// print_r($dirs);die();
foreach ($dirs as $dir) {
if (is_readable($dir . DIRECTORY_SEPARATOR . $file)) {