Update GuestTrackingController.php
Fixed issue with retrocompatibility where the ->getFirst() caused a 505 error on the order_collection when a collection class was not loaded.
This commit is contained in:
@@ -58,7 +58,7 @@ class GuestTrackingControllerCore extends FrontController
|
||||
{
|
||||
$order = new Order((int)$id_order);
|
||||
if (Validate::isLoadedObject($order))
|
||||
$order_collection[] = $order;
|
||||
$order_collection = Order::getByReference($order->reference);
|
||||
}
|
||||
else
|
||||
$order_collection = Order::getByReference($id_order);
|
||||
|
||||
Reference in New Issue
Block a user