fix error when sending notification after owner change (see 4dda2549c7)

This commit is contained in:
Uwe Steinmann 2022-01-05 08:25:57 +01:00
parent ea5218ea03
commit 7fc1a62b75

View File

@ -1235,7 +1235,7 @@ class SeedDMS_NotificationService {
/* Send mail to old owner only if the currently logged in user is not the
* owner and the owner is not already in the list of notifiers.
*/
if($user->getID() != $oldowner()->getID() && false === SeedDMS_Core_DMS::inList($oldowner, $notifyList['users']))
if($user->getID() != $oldowner->getID() && false === SeedDMS_Core_DMS::inList($oldowner, $notifyList['users']))
$this->toIndividual($user, $oldowner, $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
}
} /* }}} */
@ -1264,7 +1264,7 @@ class SeedDMS_NotificationService {
/* Send mail to old owner only if the currently logged in user is not the
* owner and the owner is not already in the list of notifiers.
*/
if($user->getID() != $oldowner()->getID() && false === SeedDMS_Core_DMS::inList($oldowner, $notifyList['users']))
if($user->getID() != $oldowner->getID() && false === SeedDMS_Core_DMS::inList($oldowner, $notifyList['users']))
$this->toIndividual($user, $oldowner, $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
}
} /* }}} */