summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-10-03 15:56:15 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2014-10-03 15:56:15 +0200
commit1cc82e5c76ae7fcd646e448404afdc0fd458bf55 (patch)
tree9d14856aa228fbf13246bf43eaa75c5ddd8366d1
parent0a8880f674dca9ad836481eb6d5403510bf886f5 (diff)
downloadrpg-1cc82e5c76ae7fcd646e448404afdc0fd458bf55.tar.gz
rpg-1cc82e5c76ae7fcd646e448404afdc0fd458bf55.tar.bz2
scrutiner issues
-rw-r--r--inc/actions.php1
-rw-r--r--inc/cliopts.php6
2 files changed, 4 insertions, 3 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 68b71a36a..766c3cd0b 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 f2782a465..7d71c7dc9 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'));