diff options
author | andi <andi@splitbrain.org> | 2005-05-13 14:22:55 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-05-13 14:22:55 +0200 |
commit | fd198316584f23924cbaf950b2f64028e17e5dbe (patch) | |
tree | 23b57048f0811c42e0cf58ea642b2e0205fbb116 | |
parent | 79d645e5a930a9166a97df21682ea10f22b4154a (diff) | |
download | rpg-fd198316584f23924cbaf950b2f64028e17e5dbe.tar.gz rpg-fd198316584f23924cbaf950b2f64028e17e5dbe.tar.bz2 |
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
-rw-r--r-- | inc/parserutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } } |