Fixed bug: "Undefined variable: form"
[philipp/winterrodeln/mediawiki_extensions/wrreport.git] / wrreport.body.php
index fe93f763cb86e211936005fd411013cf83f7fb7c..a70ac10e36afeef1f22299e720cbe50e4c68c099 100644 (file)
@@ -595,8 +595,8 @@ class WrReport {
                // report error
                if (!is_null($error_key)) {
                        $doc = new WrDOMDocument();
-                       $doc->appendElement('p')->appendElement('em')->appendText(wfMessage($error_key)->text());
-                       return $doc->saveHTML($form);
+                       $p = $doc->appendElement('p')->appendElement('em')->appendText(wfMessage($error_key)->text());
+                       return $doc->saveHTML($p);
                }
 
                // Calling "$title = $parser->getTitle(); $title->invalidateCache();" doesn't help here to force regeneration