aboutsummaryrefslogtreecommitdiffstats
path: root/egyéb/nextcloud
diff options
context:
space:
mode:
authorM.Gergo2020-03-26 03:05:03 +0100
committerM.Gergo2020-03-26 03:05:03 +0100
commitff3a100975b80c7a69668815ba5c75413861f1ee (patch)
tree42f4404b13140d4ae0d03d68701d13820ac00ed7 /egyéb/nextcloud
parent7651026adb5dbb1dc672d9772335125170d2d091 (diff)
downloadmayor-ff3a100975b80c7a69668815ba5c75413861f1ee.tar.gz
mayor-ff3a100975b80c7a69668815ba5c75413861f1ee.zip
Rev: 4638
Diffstat (limited to 'egyéb/nextcloud')
-rw-r--r--egyéb/nextcloud/mayor-nextcloud.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/egyéb/nextcloud/mayor-nextcloud.php b/egyéb/nextcloud/mayor-nextcloud.php
index ee5014e1..6be31e55 100644
--- a/egyéb/nextcloud/mayor-nextcloud.php
+++ b/egyéb/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;