]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ignore no-data error, since we use it all the time
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 12 Feb 2009 11:49:34 +0000 (06:49 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 12 Feb 2009 11:49:34 +0000 (06:49 -0500)
index.php

index 4db0e7555bed2be542e79197fe499903091a1a3d..b180e2b653b285f2c54585d83d7558e170f7e74d 100644 (file)
--- 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. '.