Merge pull request #1782 from deepak-srivastava/upgrade
[civicrm-core.git] / CRM / Core / Error.php
index fbf0ef7a47390c33a1dc69b145063454cc7dc2ed..4f8b855a2a224af8b9714f1057af0993bb158796 100644 (file)
@@ -204,7 +204,11 @@ class CRM_Core_Error extends PEAR_ErrorStack {
       echo "Sorry. A non-recoverable error has occurred. The error trace below might help to resolve the issue<p>";
       CRM_Core_Error::debug(NULL, $error);
     }
-
+    static $runOnce = FALSE;
+    if ($runOnce) {
+      exit;
+    }
+    $runOnce = TRUE;
     self::abend(1);
   }