fixed token inheritance check - sicne tis now an interface
This commit is contained in:
parent
4251bdc4e7
commit
53d3571c5f
@ -26,7 +26,7 @@ class token{
|
|||||||
*/
|
*/
|
||||||
private static function check_handler($handler){
|
private static function check_handler($handler){
|
||||||
if( !\class_exists($handler) ||
|
if( !\class_exists($handler) ||
|
||||||
!\is_array($parents = \class_parents($handler)) ||
|
!\is_array($parents = \class_implements($handler)) ||
|
||||||
!\array_search('SYSTEM\TOKEN\token_handler', $parents)){
|
!\array_search('SYSTEM\TOKEN\token_handler', $parents)){
|
||||||
return false;}
|
return false;}
|
||||||
return true;}
|
return true;}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user