diff --git a/inc/parserutils.php b/inc/parserutils.php
index abba89b5a4f11d54f27c91e2f6f8a107a117e793..9ae835893bea8d68be2aa47d89b1927c3611d95a 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -411,6 +411,7 @@ function p_set_metadata($id, $data, $render=false, $persistent=true){
         // set both keys individually as the renderer has references to the individual keys
         $METADATA_RENDERERS[$id]['current']    = $meta['current'];
         $METADATA_RENDERERS[$id]['persistent'] = $meta['persistent'];
+        return true;
     } else {
         return p_save_metadata($id, $meta);
     }