com web/php: CSE will tell you in no uncertain terms if there are no results, so we don't need to print the error message in this code path; just the
header is fine.: results.php
| From: | Adam Harvey | Date: | Fri, 07 Sep 2012 09:39:43 +0000 |
| Subject: | com web/php: CSE will tell you in no uncertain terms if there are no results, so we don't need to print the error message in this code path; just the header is fine.: results.php |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-14627@lists.php.net to get a copy of this message | ||
Commit: c6cd85903deafcdc9726c9bf57ea1aada1ac6e48
Author: Adam Harvey <aharvey@php.net> Fri, 7 Sep 2012 17:39:43 +0800
Parents: 3cb75c86e8ccabdad1b9e405c894c4131e24105a
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=c6cd85903deafcdc9726c9bf57ea1aada1ac6e48
Log:
CSE will tell you in no uncertain terms if there are no results, so we don't
need to print the error message in this code path; just the header is fine.
Changed paths:
M results.php
Diff:
diff --git a/results.php b/results.php
index bffb852..09ebd4c 100644
--- a/results.php
+++ b/results.php
@@ -68,7 +68,7 @@ if ($res['ResultSet']['totalResultsAvailable'] == 0) {
// TODO Research possible encoding issues
google_cse($q);
- exit_with_pretty_error(null, 'No matches', 'No pages matched your query');
+ site_footer();
exit;
}