From 40c1df80c3ccf847108675033fcaa96c001d1d18 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 24 Aug 2018 23:57:09 +0900 Subject: [PATCH] Update base.php --- system/base.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/base.php b/system/base.php index 22ece00..5e7d68d 100644 --- a/system/base.php +++ b/system/base.php @@ -222,6 +222,13 @@ if(!function_exists("show_errors")) { } } +if(!function_exists("set_error_exit")) { + function set_error_exit($msg, $code="ERROR") { + set_error($msg, $code); + show_errors(); + } +} + // check function exists if(!function_exists("check_function_exists")) { function check_function_exists($rules) {