summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-12 06:49:34 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-12 06:49:34 -0500
commita845d06c77f17a5037e30d41db939f0ed3b5936e (patch)
tree8928e167196a287567f3ab55ce300ce3a363bac8 /index.php
parent616bdd43a921b2554d21b80af28ddb0fb6cb3c16 (diff)
ignore no-data error, since we use it all the time
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index 4db0e7555..b180e2b65 100644
--- a/index.php
+++ b/index.php
@@ -38,6 +38,10 @@ function getPath($req)
function handleError($error)
{
+ if ($error->getCode() == DB_DATAOBJECT_ERROR_NODATA) {
+ return;
+ }
+
common_log(LOG_ERR, "PEAR error: " . $error->getMessage());
$msg = sprintf(_('The database for %s isn\'t responding correctly, '.
'so the site won\'t work properly. '.