From a15b30376f0c8e0fb29bd08c58e5cbc3cf6cef31 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 9 Apr 2004 09:29:47 +0000 Subject: [PATCH] Fix notice --- includes/EditPage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.20.1