Skip to content

Commit dad4301

Browse files
committed
#2539 - FIXED user login push notification
1 parent 96fb92d commit dad4301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/classes/user.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function checkLogin($username, $password) {
244244
$notifs->setSetting($this->setting);
245245
$notifs->setErrorCodes($this->aErrorCodes);
246246
$ndata = $notifs->getNotificationSettings($uid);
247-
if (@$ndata['success_login'] == 1) {
247+
if ((array_key_exists('push_success_lo', $ndata) && $ndata['push_success_lo']) || (array_key_exists('success_login', $ndata) && $ndata['success_login'])){
248248
// seems to be active, let's send it
249249
$aDataN['username'] = $username;
250250
$aDataN['email'] = $this->getUserEmail($username);

0 commit comments

Comments
 (0)