cvs: php-bugs-web / search.php
| From: | Sterling Hughes | 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&bug_type=" . urlencode ($bug_type) .
"&status=".urlencode(stripslashes($status))."&search_for=".urlencode(htmlspecialchars(stripslashes($search_for)))."&php_os=".htmlspecialchars(stripslashes($php_os))."&bug_age=$bug_age&by=$by&order_by=$order_by&direction=$direction&phpver=$phpver&limit=$limit&assign=$assign";
?>
<table align="center" border="0" cellspacing="2"
width="95%">