Continued:

- prevents a "Return value of Friendica\Core\Worker::workerProcess() must be of the type array, bool returned"
This commit is contained in:
Roland Häder 2022-06-18 15:56:58 +02:00
parent bd3a7b9877
commit 8756d92316
No known key found for this signature in database
GPG Key ID: C82EDE5DDFA0BA77

View File

@ -1011,7 +1011,9 @@ class Worker
DI::lock()->release(self::LOCK_PROCESS); DI::lock()->release(self::LOCK_PROCESS);
return (self::getWaitingJobForPID() ?? []); // Prevents "Return value of Friendica\Core\Worker::workerProcess() must be of the type array, bool returned"
$process = self::getWaitingJobForPID();
return (is_array($process) ? $process : []);
} }
/** /**