From 729c3abd02fc564fb99be53ba5fba450a073197f Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 2 May 2004 13:06:57 +0000 Subject: fix some issues with oop, fixing small bugs and prepare the next steps... NOTE TO DEVS: have a look at adm/admin_board.php (new config layout) git-svn-id: file:///svn/phpbb/trunk@4883 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acm/acm_file.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/acm/acm_file.php') diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php index 6a3d6335a9..229685d431 100644 --- a/phpBB/includes/acm/acm_file.php +++ b/phpBB/includes/acm/acm_file.php @@ -188,7 +188,12 @@ class acm $this->load(); } - return (time() > $this->var_expires[$var_name]) ? FALSE : isset($this->vars[$var_name]); + if (!isset($this->var_expires[$var_name])) + { + return false; + } + + return (time() > $this->var_expires[$var_name]) ? false : isset($this->vars[$var_name]); } } @@ -225,7 +230,7 @@ class acm $query = preg_replace('/[\n\r\s\t]+/', ' ', $query); $query_id = 'Cache id #' . count($this->sql_rowset); - include($this->cache_dir . 'sql_' . md5($query) . ".$phpEx"); + @include($this->cache_dir . 'sql_' . md5($query) . ".$phpEx"); if (!isset($expired)) { return FALSE; -- cgit v1.2.1