cvs: php-bugs-web / search.php

From: Date: Tue, 15 Oct 2002 14:42:55 +0000
Subject: cvs: php-bugs-web / search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-13090@lists.php.net to get a copy of this message
sterling Tue Oct 15 10:42:55 2002 EDT Modified files: /php-bugs-web search.php Log: optimize that a bit Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.31 php-bugs-web/search.php:1.32 --- php-bugs-web/search.php:1.31 Tue Oct 15 10:40:09 2002 +++ php-bugs-web/search.php Tue Oct 15 10:42:55 2002 @@ -112,12 +112,11 @@ // $total_rows = mysql_get_one("SELECT FOUND_ROWS()"); - if (!mysql_num_rows($res)) { + $rows = mysql_num_rows($res); + if (!$rows) { $errors[] = "No bugs with the specified criteria were found."; } else { - $rows = mysql_numrows($res); - $link = "$PHP_SELF?cmd=display&amp;bug_type=" . urlencode ($bug_type) . "&amp;status=".urlencode(stripslashes($status))."&amp;search_for=".urlencode(htmlspecialchars(stripslashes($search_for)))."&amp;php_os=".htmlspecialchars(stripslashes($php_os))."&amp;bug_age=$bug_age&amp;by=$by&amp;order_by=$order_by&amp;direction=$direction&amp;phpver=$phpver&amp;limit=$limit&amp;assign=$assign"; ?> <table align="center" border="0" cellspacing="2" width="95%">

« previous php.mirrors (#13090) next »