From ff3a100975b80c7a69668815ba5c75413861f1ee Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Thu, 26 Mar 2020 03:05:03 +0100 Subject: Rev: 4638 --- "egy\303\251b/nextcloud/mayor-nextcloud.php" | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'egyéb') diff --git "a/egy\303\251b/nextcloud/mayor-nextcloud.php" "b/egy\303\251b/nextcloud/mayor-nextcloud.php" index ee5014e1..6be31e55 100644 --- "a/egy\303\251b/nextcloud/mayor-nextcloud.php" +++ "b/egy\303\251b/nextcloud/mayor-nextcloud.php" @@ -373,16 +373,10 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im } function add_param_to_user($list, $user, $paramname, $param){ //Naplón kívüli csoportokat adhatunk a felhasználókhoz - $curr = ""; foreach($list as $key => $val){ // Csak rendezett tömbökön! - if($curr != $val['userAccount'] && ($user === null or ($user !== null && $val['userAccount'] == $user ))){ //Vagy mindenki vagy adott user + rendezett lista + if($user === null or ($user !== null && $val['userAccount'] == $user )){ //Vagy mindenki vagy adott user + rendezett lista $list[$key][$paramname] = $param; // A paraméter - - if($user !== null && $val['userAccount'] == $user ){ // Null -> mindenkihez, "user" -> csak neki - break; - } - $curr = $val['userAccount']; } } return $list; -- cgit v1.2.3