--- /greenstone/greenstone-documentation/packages/dokuwiki-2011-05-25a/inc/parserutils.php 2012-02-01 16:03:06.000000000 +1300 +++ parserutils.php 2013-09-19 10:46:58.000000000 +1200 @@ -522,7 +522,12 @@ function p_render_metadata($id, $orig){ // loop through the instructions foreach ($instructions as $instruction){ // execute the callback against the renderer - call_user_func_array(array(&$renderer, $instruction[0]), (array) $instruction[1]); + // - check we can, first, otherwise logs fill up with warnings + $handler = array(&$renderer, $instruction[0]); + if (is_callable($handler)) + { + call_user_func_array($handler, (array) $instruction[1]); + } } $evt->result = array('current'=>&$renderer->meta,'persistent'=>&$renderer->persistent);