sizeof() -> empty()

pull/177/head
Maxence Lange 2018-12-12 10:04:11 -01:00
rodzic a7cee453c7
commit dce5299325
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -95,7 +95,7 @@ class QueueController extends Controller {
public function asyncWithToken(string $token) {
$requests = $this->queueService->getRequestFromToken($token, RequestQueue::STATUS_STANDBY);
if (sizeof($requests) > 0) {
if (!empty($requests)) {
$this->async();
$this->activityService->manageInit();