From fd198316584f23924cbaf950b2f64028e17e5dbe Mon Sep 17 00:00:00 2001 From: andi Date: Fri, 13 May 2005 14:22:55 +0200 Subject: fix for p_cached_instructions with cacheforce for nonexistant cachefiles #323 The above function used to return NULL if a cached copy was required but wasn't found. It now returns an empty array instead. darcs-hash:20050513122255-9977f-193fcfcc12f676f355407358c6000e4a74999c03.gz --- inc/parserutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/parserutils.php') diff --git a/inc/parserutils.php b/inc/parserutils.php index a3402e4bc..802ae8a0d 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -122,7 +122,7 @@ function p_cached_instructions($file,$cacheonly=false){ if($cachetime){ return unserialize(io_readfile($cache)); }else{ - return NULL; + return array(); } } -- cgit v1.2.3