diff options
author | Michael Hamann <michael@content-space.de> | 2012-07-28 11:14:09 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2012-07-28 11:34:47 +0200 |
commit | 0a6ae52f7430e50a9680c9a927d460c63395087c (patch) | |
tree | bbe76235e3f01a580ad95d2bcb83264be0c3c013 /inc | |
parent | 3e8e3ae62e43569a3dbe679e04d07744e045e472 (diff) | |
download | rpg-0a6ae52f7430e50a9680c9a927d460c63395087c.tar.gz rpg-0a6ae52f7430e50a9680c9a927d460c63395087c.tar.bz2 |
Initialize more variables and test if others are set (no functional changes)
Diffstat (limited to 'inc')
-rw-r--r-- | inc/parserutils.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php index 107c42eb0..20f992ba2 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -103,6 +103,7 @@ function p_wiki_xhtml($id, $rev='', $excuse=true){ function p_wiki_xhtml_summary($id, &$title, $rev='', $excuse=true){ $file = wikiFN($id,$rev); $ret = ''; + $ins = null; //ensure $id is in global $ID (needed for parsing) global $ID; @@ -712,7 +713,7 @@ function & p_get_renderer($mode) { $Renderer =& $plugin_controller->load('renderer',$rname); } - if(is_null($Renderer)){ + if(!isset($Renderer) || is_null($Renderer)){ msg("No renderer '$rname' found for mode '$mode'",-1); return null; } |