From 4b0ff71750efe6cf9339ef40afe1de92a2fcd2c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Mon, 10 Mar 2014 21:41:35 +0100 Subject: [PATCH] Fix warning --- base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base.php b/base.php index 7af0592..0456017 100644 --- a/base.php +++ b/base.php @@ -1075,8 +1075,8 @@ abstract class Base public static function useAbsolutePath () { global $config; $path = self::getDbDirectory(); - return preg_match ('/^\//', Base::getDbDirectory ()) || // Linux / - preg_match ('/^\w\:/', Base::getDbDirectory ()); // Windows X: + return preg_match ('/^\//', $path) || // Linux / + preg_match ('/^\w\:/', $path); // Windows X: } public static function noDatabaseSelected () {