diff --git a/inc/actions.php b/inc/actions.php index 68b71a36a2e81c050fab101718395cc4d4601d52..766c3cd0b710f2b0026b33d428bef9cee4cc7183 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -200,6 +200,7 @@ function act_dispatch(){ global $license; //call template FIXME: all needed vars available? + $headers = array(); $headers[] = 'Content-Type: text/html; charset=utf-8'; trigger_event('ACTION_HEADERS_SEND',$headers,'act_sendheaders'); diff --git a/inc/cliopts.php b/inc/cliopts.php index f2782a465a1242e1a7fd36225b24a66ee5d18d1f..7d71c7dc922431d83d18e8b17a8be3aa71dbad9e 100644 --- a/inc/cliopts.php +++ b/inc/cliopts.php @@ -36,9 +36,9 @@ if (version_compare(phpversion(), '4.3.0', '<') || php_sapi_name() == 'cgi') { // PHP ini settings set_time_limit(0); - ini_set('track_errors', true); - ini_set('html_errors', false); - ini_set('magic_quotes_runtime', false); + ini_set('track_errors', "1"); + ini_set('html_errors', "0"); + ini_set('magic_quotes_runtime', "0"); // Define stream constants define('STDIN', fopen('php://stdin', 'r'));