From f048d0b3006fe4b3d8a0d3a98cb4dd41b5ce283f Mon Sep 17 00:00:00 2001 From: vargenau Date: Fri, 30 Nov 2012 15:31:50 +0000 Subject: [PATCH] Avoid warning git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8579 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/SearchHighlight.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/plugin/SearchHighlight.php b/lib/plugin/SearchHighlight.php index 69ef00328..320b1ad7c 100644 --- a/lib/plugin/SearchHighlight.php +++ b/lib/plugin/SearchHighlight.php @@ -62,8 +62,9 @@ class WikiPlugin_SearchHighlight if (empty($args['s']) and isset($request->_searchhighlight)) { $args['s'] = $request->_searchhighlight['query']; } - if (empty($args['s'])) - return ''; + if (empty($args['s'])) { + return HTML(); + } extract($args); $html = HTML(); if (!$noheader and isset($request->_searchhighlight)) { -- 2.45.0