Skip to content
Snippets Groups Projects
Commit 142682cf authored by Demian Katz's avatar Demian Katz
Browse files

Added isset check to avoid errors.

parent 386671a6
No related merge requests found
...@@ -140,9 +140,11 @@ class User extends RowGateway implements \VuFind\Db\Table\DbTableAwareInterface, ...@@ -140,9 +140,11 @@ class User extends RowGateway implements \VuFind\Db\Table\DbTableAwareInterface,
*/ */
public function getCatPassword() public function getCatPassword()
{ {
return $this->passwordEncryptionEnabled() if ($this->passwordEncryptionEnabled()) {
? $this->encryptOrDecrypt($this->cat_pass_enc, false) return isset($this->cat_pass_enc)
: (isset($this->cat_password) ? $this->cat_password : null); ? $this->encryptOrDecrypt($this->cat_pass_enc, false) : null;
}
return isset($this->cat_password) ? $this->cat_password : null;
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment