diff --git a/src/QUI/ERP/Products/Controls/ManufacturerList/ManufacturerList.php b/src/QUI/ERP/Products/Controls/ManufacturerList/ManufacturerList.php index 0d94d2f6f5e865b5101061c92d9f58cd8d7e74d9..9b5594497332cde3f3e076df9c46aaae080d5f4e 100644 --- a/src/QUI/ERP/Products/Controls/ManufacturerList/ManufacturerList.php +++ b/src/QUI/ERP/Products/Controls/ManufacturerList/ManufacturerList.php @@ -161,7 +161,6 @@ protected function renderData($start, $max, $count = false) $more = true; $manufacturerUserIds = []; $Users = QUI::getUsers(); - $count = 0; try { $userIds = ManufacturersHandler::getManufacturerUserIds(); @@ -193,6 +192,10 @@ protected function renderData($start, $max, $count = false) $count = 0; } + if ($count === false) { + $count = 0; + } + // sort alphabetically \usort($manufacturerUserIds, function ($userIdA, $userIdB) { /**