From bddfecf27b05ebf105929f29ef23c26d3b258c3c Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Fri, 7 Oct 2016 08:23:52 +0200 Subject: [PATCH] supp_comp_get_array function fixed --- web/Obj/brisk.phh | 2 +- web/Obj/dbase_base.phh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 9368916..29ec0e8 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -2097,7 +2097,7 @@ class Brisk /* MLANG: "Non puoi cambiare nick a un tavolo per soli autenticati.", "Il nickname \'%s\' è già registrato, se il suo proprietario si autentificherà verrai rinominato d\'ufficio come ghostN." */ if ($user->is_auth()) { - if (strcasecmp($user->name,$name_new) != 0) { + if (strcasecmp($user->name, $name_new) != 0) { if (( ($user->flags & USER_FLAG_MAP_AUTH) != USER_FLAG_ISOLAUTH) && ($user->subst == 'standup' || ($user->subst != 'standup' && $this->table[$user->table]->auth_type == TABLE_AUTH_TY_PUBL) diff --git a/web/Obj/dbase_base.phh b/web/Obj/dbase_base.phh index d2cebbc..25c36d5 100644 --- a/web/Obj/dbase_base.phh +++ b/web/Obj/dbase_base.phh @@ -110,10 +110,9 @@ class LoginDBItem { $group_cur = $group_id[$i]; $ret_arr[$group_cur] = array(); for ($e = 0 ; $e < 3 ; $e++) { - $ret_arr[$group_cur][$comp_id[$e]] = base_convert(substr($supp_comp, $i*3 + $e, 2), 16, 10); + $ret_arr[$group_cur][$comp_id[$e]] = base_convert(substr($supp_comp, $i*6 + $e*2, 2), 16, 10); } } - return ($ret_arr); } -- 2.17.1