Fix notice
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 9 Apr 2004 09:29:47 +0000 (09:29 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 9 Apr 2004 09:29:47 +0000 (09:29 +0000)
includes/EditPage.php

index 20d651c..999c65d 100644 (file)
@@ -225,7 +225,9 @@ class EditPage {
                                        $sectitle=preg_match("/^=+(.*?)=+/mi",
                                        $this->textbox1,
                                        $matches);
-                                       if($matches[1]) { $this->summary = "/* ". trim($matches[1])." */ "; }
+                                       if( !empty( $matches[1] ) {
+                                               $this->summary = "/* ". trim($matches[1])." */ ";
+                                       }
                                }
                        }
                        $wgOut->setPageTitle( $s );