com web/bugs: - Fix warning: www/search.php
| From: | Felipe Pena | Date: | Wed, 23 May 2012 23:36:05 +0000 |
| Subject: | com web/bugs: - Fix warning: www/search.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13578@lists.php.net to get a copy of this message | ||
Commit: 7edfcbd87dc32ccc233b02aba760aac452a3e1d7
Author: Felipe Pena <felipensp@gmail.com> Wed, 23 May 2012 20:36:05 -0300
Parents: afa03c110825122bf264b2dc8b7502e57536709c
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=7edfcbd87dc32ccc233b02aba760aac452a3e1d7
Log:
- Fix warning
Changed paths:
M www/search.php
Diff:
diff --git a/www/search.php b/www/search.php
index a29197e..2d09eb1 100644
--- a/www/search.php
+++ b/www/search.php
@@ -34,7 +34,7 @@ require "{$ROOT_DIR}/include/query.php";
if (isset($_GET['cmd']) && $_GET['cmd'] == 'display')
{
- if (!$res) {
+ if (!isset($res)) {
$errors[] = 'Invalid query';
} else {
// For count only, simply print the count and exit