Fix warning
This commit is contained in:
parent
8a8b98620d
commit
4b0ff71750
4
base.php
4
base.php
|
@ -1075,8 +1075,8 @@ abstract class Base
|
||||||
public static function useAbsolutePath () {
|
public static function useAbsolutePath () {
|
||||||
global $config;
|
global $config;
|
||||||
$path = self::getDbDirectory();
|
$path = self::getDbDirectory();
|
||||||
return preg_match ('/^\//', Base::getDbDirectory ()) || // Linux /
|
return preg_match ('/^\//', $path) || // Linux /
|
||||||
preg_match ('/^\w\:/', Base::getDbDirectory ()); // Windows X:
|
preg_match ('/^\w\:/', $path); // Windows X:
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function noDatabaseSelected () {
|
public static function noDatabaseSelected () {
|
||||||
|
|
Loading…
Reference in a new issue