cvs: php-bugs-web / search.php

From: Date: Fri, 15 Aug 2003 12:01:20 +0000
Subject: cvs: php-bugs-web / search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-20362@lists.php.net to get a copy of this message
sniper Fri Aug 15 08:01:20 2003 EDT Modified files: /php-bugs-web search.php Log: Fix the search (to keep the "order_by" intact in all cases) Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.51 php-bugs-web/search.php:1.52 --- php-bugs-web/search.php:1.51 Thu Aug 14 05:17:31 2003 +++ php-bugs-web/search.php Fri Aug 15 08:01:20 2003 @@ -102,7 +102,7 @@ /* we avoid adding an order by clause if using the full text search */ if ($order_by || $reorder_by || !strlen($search_for)) { if (!in_array($order_by,$allowed_order)) $order_by = "id"; - if (!in_array($reorder_by,$allowed_order)) $reorder_by = "id"; + if (isset($reorder_by) && !in_array($reorder_by,$allowed_order)) $reorder_by = "id"; if ($direction != "DESC") $direction = "ASC"; if ($reorder_by) {

« previous php.mirrors (#20362) next »