Make isWPUser return false for 0

[MAILPOET-2457]
This commit is contained in:
Amine Ben hammou
2019-10-09 15:59:58 +01:00
committed by Jack Kitterhing
parent d2f6c48acb
commit 31d8125b99

View File

@ -101,7 +101,7 @@ class Subscriber extends Model {
}
function isWPUser() {
return ($this->wp_user_id !== null);
return (bool)$this->wp_user_id;
}
function isWooCommerceUser() {