Skip to content

Commit

Permalink
Simplify and fix coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 16, 2019
1 parent 833852d commit b9ab8c9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/Horde/Imap/Client/Socket.php
Expand Up @@ -663,13 +663,10 @@ protected function _connect()
*/
protected function _tryLogin($method)
{
$username = $this->getParam('username');
if (is_null($this->getParam('authusername'))) {
$authusername = $username;
}
else {
$authusername = $this->getParam('authusername');
}
$username = $this->getParam('username');
if (is_null($authusername = $this->getParam('authusername'))) {
$authusername = $username;
}
$password = $this->getParam('password');

switch ($method) {
Expand Down

0 comments on commit b9ab8c9

Please sign in to comment.