X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fcurrent_user.inc;h=ea106e152b081c57a51d0a0215ae6f0ceed87990;hb=c51f4515e92fc251aa51b7809d4514161655fa37;hp=023da535e5d737e72fdad0f1f0631715ccb77b48;hpb=c2ab31ecc8bd6c3be0dc3b3d64dee508e982b998;p=fa-stable.git diff --git a/includes/current_user.inc b/includes/current_user.inc index 023da535..ea106e15 100644 --- a/includes/current_user.inc +++ b/includes/current_user.inc @@ -193,7 +193,7 @@ class current_user $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize, $show_hints, $profile, $rep_popup, $query_size, $graphic_links, $lang, $stickydate, $startup_tab); } - $this->prefs = new user_prefs($user); + $this->prefs = new user_prefs(get_user($this->user)); } } @@ -281,10 +281,12 @@ function user_numeric($input) { $num = trim($input); $sep = $thoseps[user_tho_sep()]; - if($sep!='') $num = str_replace( $sep, '', $num); - str_replace($sep, '', $num); + if ($sep!='') + $num = str_replace( $sep, '', $num); + $sep = $decseps[user_dec_sep()]; - if($sep!='.') $num = str_replace( $sep, '.', $num); + if ($sep!='.') + $num = str_replace( $sep, '.', $num); if (!is_numeric($num)) return false;