Skip to content
Snippets Groups Projects
Commit 3d6feb16 authored by Michael Hamann's avatar Michael Hamann
Browse files

Remove useless condition in p_get_metadata and add explanation

parent 9f2f766c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment