From: Brion Vibber Date: Fri, 9 Apr 2004 09:29:47 +0000 (+0000) Subject: Fix notice X-Git-Tag: 1.3.0beta1~531 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=a15b30376f0c8e0fb29bd08c58e5cbc3cf6cef31;p=lhc%2Fweb%2Fwiklou.git Fix notice --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 20d651ce1f..999c65da4b 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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 );