fixed up if statements

This commit is contained in:
Brenda Wallace 2009-09-13 20:16:07 +12:00
parent acd9e7c056
commit a2f4fe7fc8

View File

@ -49,11 +49,11 @@ function handleError($error)
}
$logmsg = "PEAR error: " . $error->getMessage();
if(common_config('site', 'logdebug')) {
if (common_config('site', 'logdebug')) {
$logmsg .= " : ". $error->getDebugInfo();
}
common_log(LOG_ERR, $logmsg);
if(common_config('site', 'logdebug')) {
if (common_config('site', 'logdebug')) {
$bt = $error->getBacktrace();
foreach ($bt as $line) {
common_log(LOG_ERR, $line);