svn: /web/php/trunk/include/ manual-lookup.inc
| From: | Hannes Magnusson | Date: | Tue, 30 Aug 2011 09:07:08 +0000 |
| Subject: | svn: /web/php/trunk/include/ manual-lookup.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-12074@lists.php.net to get a copy of this message | ||
bjori Tue, 30 Aug 2011 09:07:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=315761
Log:
Protect against broken databases
Changed paths:
U web/php/trunk/include/manual-lookup.inc
Modified: web/php/trunk/include/manual-lookup.inc
===================================================================
--- web/php/trunk/include/manual-lookup.inc 2011-08-30 08:41:29 UTC (rev 315760)
+++ web/php/trunk/include/manual-lookup.inc 2011-08-30 09:07:08 UTC (rev 315761)
@@ -149,6 +149,9 @@
}
$stm = $dbh->prepare($SQL);
+ if (!$stm) {
+ return find_manual_page_slow($lang, $keyword);
+ }
$stm->execute(array($lang, "/manual/{$lang}/{$_keyword}", $keyword));
// Some partially specified URL is used