summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c91949)
raw | patch | inline | side by side (parent: 4c91949)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jun 2005 06:12:57 +0000 (06:12 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jun 2005 06:12:57 +0000 (06:12 +0000) |
include/functions.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index 2c90b4f5ce6c05c4e0b1293fb4ae19d08063cffe..308376d58bebdc6e902607d97fa4250123ca6658 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
/* Write to syslog */
gosa_log ("PHP error: $errstr ($errfile, line $errline)");
+
+ /* Flush in case of fatal errors */
+ if (preg_match('/^fatal/i', $errstr)){
+ echo $error_collector."</div>";
+ flush();
+ exit;
+ }
}