Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 8b214ed

Browse files
committed
fix for renamed function. closes cosmocode#91
1 parent 75cf691 commit 8b214ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

auth.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,13 @@ protected function addUser(&$uinfo, $servicename) {
294294
* @return bool|string
295295
*/
296296
protected function getUserByEmail($mail) {
297-
if($this->users === null) $this->_loadUserData();
297+
if($this->users === null){
298+
if(is_callable([$this, '_loadUserData'])) {
299+
$this->_loadUserData();
300+
} else {
301+
$this->loadUserData();
302+
}
303+
}
298304
$mail = strtolower($mail);
299305

300306
foreach($this->users as $user => $uinfo) {

0 commit comments

Comments
 (0)