summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-05-13 14:22:55 +0200
committerandi <andi@splitbrain.org>2005-05-13 14:22:55 +0200
commitfd198316584f23924cbaf950b2f64028e17e5dbe (patch)
tree23b57048f0811c42e0cf58ea642b2e0205fbb116 /inc/parserutils.php
parent79d645e5a930a9166a97df21682ea10f22b4154a (diff)
downloadrpg-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
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r--inc/parserutils.php2
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();
}
}