fixed token inheritance check - sicne tis now an interface

This commit is contained in:
Ulf Gebhardt 2016-11-20 17:58:25 +01:00
parent 4251bdc4e7
commit 53d3571c5f

View File

@ -26,7 +26,7 @@ class token{
*/
private static function check_handler($handler){
if( !\class_exists($handler) ||
!\is_array($parents = \class_parents($handler)) ||
!\is_array($parents = \class_implements($handler)) ||
!\array_search('SYSTEM\TOKEN\token_handler', $parents)){
return false;}
return true;}