Incorrect Journal Balance (sales invoice) when many decimals in tax and price.
[fa-stable.git] / install / isession.inc
index bd8cce10771ce139a31ebd8311c497726b0c4ab8..b65d52ed0c79ae6e22cbb9f01a08127457df66d4 100644 (file)
@@ -31,7 +31,7 @@ function output_html($text)
 //
 function strip_quotes($data)
 {
-       if(get_magic_quotes_gpc()) {
+       if(version_compare(phpversion(), '5.4', '<') && get_magic_quotes_gpc()) {
                if(is_array($data)) {
                        foreach($data as $k => $v) {
                                $data[$k] = strip_quotes($data[$k]);
@@ -125,6 +125,14 @@ $inst_langs = array(
   'zh_CN' => array ( 'name' => 'Chinese Simplifed',    'code' => 'zh_CN',      'encoding' => 'utf-8'),
 );
 
+if ($SysPrefs->go_debug > 0)
+       $cur_error_level = -1;
+else
+       $cur_error_level = E_USER_WARNING|E_USER_ERROR|E_USER_NOTICE;
+
+error_reporting($cur_error_level);
+ini_set("display_errors", "On");
+
 $Ajax = new Ajax();
 
 get_text_init();