Empty args problem in NotificationHandler.inc.php

I have a problem in function unsubscribeMailList($args, &$request) of OJS\lib\pkp\pages\notification\NotificationHandler.inc.php class that $userToken = array_shift($args); the variable $userToken is not set because the $args is an empty array!
plz help me

Hi @mahsa_idasa

Could post your OJS version, stack environment and php log error with line number about this issue you reported?

Israel Cefrin
Public Knowledge Project Team