Skip to content

Commit

Permalink
3.0.5
Browse files Browse the repository at this point in the history
Fix a bug related to #3635
  • Loading branch information
nilsteampassnet committed Apr 13, 2023
1 parent 7a7b230 commit 4c5551c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sources/users.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -1437,9 +1437,10 @@
$users = DB::query(
'SELECT id
FROM ' . prefixTable('users') . '
WHERE admin = 1 AND email != "" AND pw != ""'
WHERE admin = 1 AND email != "" AND pw != "" AND id != %i',
$post_id
);
if (DB::count() === 1) {
if (DB::count() === 0) {
echo prepareExchangedData(
$SETTINGS['cpassman_dir'],
array(
Expand Down Expand Up @@ -1470,7 +1471,7 @@
}
}
}
$post_groups = empty($fonctions) ? null : $fonctions;
$post_groups = empty($fonctions) === true ? $post_groups : $fonctions;

// Build array of update
$changeArray = array(
Expand Down

0 comments on commit 4c5551c

Please sign in to comment.