From 3d5a80b9be822d570e08db43f5ebe0368a543eef Mon Sep 17 00:00:00 2001 From: rurban Date: Thu, 14 Oct 2004 13:44:14 +0000 Subject: [PATCH] fix lib/display.php:159: Warning[2]: Argument to array_reverse() should be an array git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4032 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/display.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/display.php b/lib/display.php index 0773e570c..c83475ec1 100644 --- a/lib/display.php +++ b/lib/display.php @@ -1,6 +1,6 @@ expandPI('<'.'?plugin SearchHighLight s="'.$result['query'].'"?'.'>', $request, $markup); - if ($xml) { + if ($xml and is_array($xml)) { foreach (array_reverse($xml) as $line) { array_unshift($page_content->_content, $line); } @@ -207,6 +207,9 @@ function displayPage(&$request, $template=false) { } // $Log: not supported by cvs2svn $ +// Revision 1.55 2004/09/26 14:58:35 rurban +// naive SearchHighLight implementation +// // Revision 1.54 2004/09/17 14:19:41 rurban // disable Content-Type header for now, until it is fixed // -- 2.45.0