- Изменен метод проверки unsubscribed

parent 65d845e1
...@@ -136,10 +136,10 @@ class UnisenderAPI { ...@@ -136,10 +136,10 @@ class UnisenderAPI {
* @return bool * @return bool
*/ */
public function isUnsubscribed(){ public function isUnsubscribed(){
if (array_key_exists('result', $this->statuses) && array_key_exists('status', $this->statuses['result'])) { foreach($this->statuses as $status) {
if ($this->statuses['result']['status']==ConditionBase::MESSAGE_UNSUBSCRIBED) if ($status==ConditionBase::MESSAGE_UNSUBSCRIBED)
return true; return true;
} }
return false; return false;
} }
......
Markdown is supported
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