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:
Lucas Bickel 2017-03-11 22:49:05 +01:00
parent 095ddaed38
commit 1c1f7587a3
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
/**