summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
diff options
context:
space:
mode:
authorgweissbach <gweissbach@inetsoftware.de>2008-08-04 13:24:44 +0200
committergweissbach <gweissbach@inetsoftware.de>2008-08-04 13:24:44 +0200
commit3a50618c0d0d03fe5cbf1d782868e84b873f2e89 (patch)
tree63a8790437448c0f56c3d85d94d46661618b8fb7 /inc/parserutils.php
parentf426fffeaedd0f7d5b6075f6fbc8575a7d21a1b2 (diff)
downloadrpg-3a50618c0d0d03fe5cbf1d782868e84b873f2e89.tar.gz
rpg-3a50618c0d0d03fe5cbf1d782868e84b873f2e89.tar.bz2
Explicite TypeCast for searchIndex
Running the /bin/indexer.php or the searchindex plugin fails in php5 with several type cast errors. This can be fixed using explicite type casts. Secondly the include plugin requires the auth.php to be present. As some other plugins might use quick-acl or the $auth too, indexer.php should require the auth.php just as the lib/exe/indexer.php does. darcs-hash:20080804112444-f4337-e12f25329236689b05e31f0db2119e47660a9404.gz
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r--inc/parserutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 9f8b88cb6..95d9647ff 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -359,7 +359,7 @@ function p_purge_metadata($id) {
function p_read_metadata($id,$cache=false) {
global $cache_metadata;
- if (isset($cache_metadata[$id])) return $cache_metadata[$id];
+ if (isset($cache_metadata[(string)$id])) return $cache_metadata[(string)$id];
$file = metaFN($id, '.meta');
$meta = @file_exists($file) ? unserialize(io_readFile($file, false)) : array('current'=>array(),'persistent'=>array());
@@ -385,7 +385,7 @@ function p_read_metadata($id,$cache=false) {
}
if ($cache) {
- $cache_metadata[$id] = $meta;
+ $cache_metadata[(string)$id] = $meta;
}
return $meta;