File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -187,13 +187,14 @@ public function hookDisplayBookingAction($params)
187
187
if (QhrHotelReviewHelper::getIsReviewable ($ idOrder )
188
188
&& !QhrHotelReview::getByIdOrder ($ idOrder )
189
189
) {
190
- $ hotel = QhrHotelReviewHelper::getHotelByOrder ($ idOrder );
191
- $ this ->smarty ->assign (array (
192
- 'id_order ' => (int ) $ idOrder ,
193
- 'id_hotel ' => $ hotel ['id_hotel ' ],
194
- 'hotel_name ' => $ hotel ['hotel_name ' ],
195
- ));
196
- return $ this ->display (__FILE__ , 'booking-action.tpl ' );
190
+ if ($ hotel = QhrHotelReviewHelper::getHotelByOrder ($ idOrder )) {
191
+ $ this ->smarty ->assign (array (
192
+ 'id_order ' => (int ) $ idOrder ,
193
+ 'id_hotel ' => $ hotel ['id_hotel ' ],
194
+ 'hotel_name ' => $ hotel ['hotel_name ' ],
195
+ ));
196
+ return $ this ->display (__FILE__ , 'booking-action.tpl ' );
197
+ }
197
198
}
198
199
}
199
200
You can’t perform that action at this time.
0 commit comments