mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
on deleteUsers hook: we need an admin connection, but we have to check general connected status as well, in case we are not
This commit is contained in:
parent
0bc9b1357c
commit
b14cc0c07e
@ -85,9 +85,9 @@ class cyrusimap extends defaultimap
|
||||
return false;
|
||||
}
|
||||
|
||||
// we need a admin connection
|
||||
if($this->_connected === true && !$this->isAdminConnection) {
|
||||
$this->disconnect();
|
||||
// we need a admin connection, but check connected status as well, in case we are not
|
||||
if(($this->_connected === true && !$this->isAdminConnection) || !($this->_connected === true)) {
|
||||
if ($this->_connected === true) $this->disconnect();
|
||||
if(!$this->openConnection(true)) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user