From 5cdf27edefd5e045c7834badbaaadf71f77d1f85 Mon Sep 17 00:00:00 2001 From: Paul Sohier Date: Sun, 7 Nov 2010 12:08:22 +0100 Subject: [PATCH] [ticket/9696] Surpress is_dir() notice when using SQLite with open_basedir. PHPBB3-9696 --- phpBB/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index e154aa44b0..561a9906c4 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1052,7 +1052,7 @@ function phpbb_own_realpath($path) // @todo If the file exists fine and open_basedir only has one path we should be able to prepend it // because we must be inside that basedir, the question is where... // @internal The slash in is_dir() gets around an open_basedir restriction - if (!@file_exists($resolved) || (!is_dir($resolved . '/') && !is_file($resolved))) + if (!@file_exists($resolved) || (!@is_dir($resolved . '/') && !is_file($resolved))) { return false; }