mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 07:34:09 +01:00
* [FIX] Fixes #543. Fix missing accounts Id in group accesses table. Thanks to @Goatmaster for the feedback.
This commit is contained in:
@@ -57,6 +57,12 @@ class Account
|
||||
|
||||
DB::getQuery($Data);
|
||||
|
||||
$query = /** @lang SQL */
|
||||
'DELETE FROM accGroups WHERE accgroup_accountId NOT IN (SELECT account_id FROM accounts) OR accgroup_accountId IS NULL';
|
||||
$Data->setQuery($query);
|
||||
|
||||
DB::getQuery($Data);
|
||||
|
||||
DB::endTransaction();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user