From 874ff4d4be5a8744052f9bcd810f62ac1da1193b Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 26 May 2010 08:46:49 +0000 Subject: [PATCH] - Fix raise_error() in Installer (#1486756) --- program/include/main.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/include/main.inc b/program/include/main.inc index 409d6eed2..6a8179127 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -1630,6 +1630,7 @@ class rcube_base_replacer } } + /** * Throw system error and show error page * @@ -1642,6 +1643,8 @@ class rcube_base_replacer * @param boolean True to log the error * @param boolean Terminate script execution */ +// may be defined in Installer +if (!function_exists('raise_error')) { function raise_error($arg=array(), $log=false, $terminate=false) { global $__page_content, $CONFIG, $OUTPUT, $ERROR_CODE, $ERROR_MESSAGE; @@ -1658,6 +1661,7 @@ function raise_error($arg=array(), $log=false, $terminate=false) exit; } } +} /**