summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2012-07-07 23:06:12 +0200
committerMichael Hamann <michael@content-space.de>2012-07-08 19:00:46 +0200
commit3d6feb16238ee969cb2ba14a592124052f0c4bc2 (patch)
tree815e49a26b073b15694ad0ec9230c2753ed861c2 /inc
parent9f2f766c00c72204f3a4bc723177d4fec53d8780 (diff)
downloadrpg-3d6feb16238ee969cb2ba14a592124052f0c4bc2.tar.gz
rpg-3d6feb16238ee969cb2ba14a592124052f0c4bc2.tar.bz2
Remove useless condition in p_get_metadata and add explanation
Diffstat (limited to 'inc')
-rw-r--r--inc/parserutils.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 25d7cf131..55b451c76 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -318,8 +318,9 @@ function p_get_metadata($id, $key='', $render=METADATA_RENDER_USING_CACHE){
// only update the file when the metadata has been changed
if ($meta == $old_meta || p_save_metadata($id, $meta)) {
// store a timestamp in order to make sure that the cachefile is touched
+ // this timestamp is also stored when the meta data is still the same
$cachefile->storeCache(time());
- } elseif ($meta != $old_meta) {
+ } else {
msg('Unable to save metadata file. Hint: disk full; file permissions; safe_mode setting.',-1);
}
}