From: Evan Prodromou Date: Thu, 12 Feb 2009 11:49:34 +0000 (-0500) Subject: ignore no-data error, since we use it all the time X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a845d06c77f17a5037e30d41db939f0ed3b5936e;p=quix0rs-gnu-social.git ignore no-data error, since we use it all the time --- diff --git a/index.php b/index.php index 4db0e7555b..b180e2b653 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. '.