Merge pull request #1207 from wdammak/patch-55
Fix: Undefined variable in "AdminStatsController.php" controller ($idHotel)
This commit is contained in:
@@ -233,7 +233,7 @@ class AdminStatsControllerCore extends AdminStatsTabController
|
||||
AND EXISTS (
|
||||
SELECT 1
|
||||
FROM `qlo_htl_booking_detail` hbd
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($idHotel).'
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($id_hotel).'
|
||||
)
|
||||
GROUP BY LEFT(`invoice_date`, 10)'
|
||||
);
|
||||
@@ -251,7 +251,7 @@ class AdminStatsControllerCore extends AdminStatsTabController
|
||||
AND EXISTS (
|
||||
SELECT 1
|
||||
FROM `qlo_htl_booking_detail` hbd
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($idHotel).'
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($id_hotel).'
|
||||
)
|
||||
GROUP BY LEFT(`invoice_date`, 7)'
|
||||
);
|
||||
@@ -494,7 +494,7 @@ class AdminStatsControllerCore extends AdminStatsTabController
|
||||
AND os.logable = 1 AND EXISTS (
|
||||
SELECT 1
|
||||
FROM `qlo_htl_booking_detail` hbd
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($idHotel).'
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($id_hotel).'
|
||||
)
|
||||
GROUP BY LEFT(`invoice_date`, 10)');
|
||||
|
||||
@@ -517,7 +517,7 @@ class AdminStatsControllerCore extends AdminStatsTabController
|
||||
AND os.logable = 1 AND EXISTS (
|
||||
SELECT 1
|
||||
FROM `qlo_htl_booking_detail` hbd
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($idHotel).'
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($id_hotel).'
|
||||
)'
|
||||
);
|
||||
}
|
||||
@@ -538,7 +538,7 @@ class AdminStatsControllerCore extends AdminStatsTabController
|
||||
AND "'.pSQL($date_to).' 23:59:59" AND EXISTS (
|
||||
SELECT 1
|
||||
FROM `qlo_htl_booking_detail` hbd
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($idHotel).'
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($id_hotel).'
|
||||
)
|
||||
GROUP BY LEFT(`invoice_date`, 10)');
|
||||
|
||||
@@ -563,7 +563,7 @@ class AdminStatsControllerCore extends AdminStatsTabController
|
||||
AND EXISTS (
|
||||
SELECT 1
|
||||
FROM `qlo_htl_booking_detail` hbd
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($idHotel).'
|
||||
WHERE hbd.`id_order` = o.`id_order`' . HotelBranchInformation::addHotelRestriction($id_hotel).'
|
||||
)'
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user