From 16626ba293babee3cd822e08021c7334282a8a6b Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Tue, 24 Mar 2020 05:01:16 +0100 Subject: Mayor-Nextcloud script: Csoprtok --- "egy\303\251b/nextcloud/mayor-nextcloud.php" | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'egyéb/nextcloud/mayor-nextcloud.php') diff --git "a/egy\303\251b/nextcloud/mayor-nextcloud.php" "b/egy\303\251b/nextcloud/mayor-nextcloud.php" index 326ab1f5..411ca2ca 100644 --- "a/egy\303\251b/nextcloud/mayor-nextcloud.php" +++ "b/egy\303\251b/nextcloud/mayor-nextcloud.php" @@ -638,6 +638,7 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im ))); } } + // usort($mayor_user, "mayor_userlistcmp"); // előbb rendezzük $mayor_user = array_merge($mayor_user, array(array('userAccount' => null, 'fullName' => null, 'tankorNev' => null,)) ); //strázsa a lista végére $nxt_user = nxt_user_list(); $nxt_group = nxt_group_list(); @@ -658,7 +659,7 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im $tankorei = array(); foreach($mayor_user as $key => $val){ //Végignézi a mayorból kinyert lista alapján. - if($curr != $val['userAccount']){ //Először felhasználónként egyet lépkedünk + if($curr != $val['userAccount']){ //CSAK Rendezett tömbökön !! foreach($nxt_user as $key2 => $val2){ if($curr == $key2){ //Már létezik a felhasználó a Nextcloud-ban $log['curr'] = "-\tFelhasználó:".po("\t$curr_n ($curr)",$m2n['felhasznalo_hossz'],1)."--\tok.\n"; -- cgit v1.2.3