summaryrefslogtreecommitdiff
path: root/error.php
diff options
context:
space:
mode:
Diffstat (limited to 'error.php')
-rw-r--r--error.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/error.php b/error.php
index 992197e..5b65ab3 100644
--- a/error.php
+++ b/error.php
@@ -1,5 +1,9 @@
<?php function ch_error($level, $message, $file = null, $line = null, $context = null) {
- ob_end_clean(); ?>
+ if ($level === E_USER_DEPRECATED || $level === E_DEPRECATED) return false;
+
+ ob_end_clean();
+
+ ?>
<!DOCTYPE html>
<html lang="en">
@@ -68,10 +72,8 @@
if ($level === E_COMPILE_WARNING) echo("E_ALL");
if ($level === E_CORE_ERROR) echo("E_ALL");
if ($level === E_CORE_WARNING) echo("E_ALL");
- if ($level === E_DEPRECATED) echo("E_DEPRECATED");
if ($level === E_PARSE) echo("E_PARSE");
if ($level === E_RECOVERABLE_ERROR) echo("E_RECOVERABLE_ERROR");
- if ($level === E_USER_DEPRECATED) echo("E_USER_DEPRECATED");
?>]
<?= $message ?>