Fix _isTask method in taskmanager
The is_a fix from 09aea8b747
was not quite the way to go, with array_key_exists and class_implements implements the TaskManager finds all tasks again.
This commit is contained in:
parent
095ddaed38
commit
1c1f7587a3
|
@ -377,7 +377,7 @@ class TaskFactory {
|
|||
* @return bool true if the class $c implements AirtimeTask
|
||||
*/
|
||||
private static function _isTask($c) {
|
||||
return is_a('AirtimeTask', $c, true);
|
||||
return array_key_exists('AirtimeTask', class_implements($c));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue