fix warnings given by MDB2 if opendir is restricted by the host
This commit is contained in:
parent
2a78209728
commit
6642d4af6f
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue