Updated controllers, install and modules for PHP 8.x compatibility

This commit is contained in:
vishalsingh.qlo325
2025-05-23 15:08:00 +05:30
parent b9dbc449fe
commit 2f9c64d0fb
173 changed files with 688 additions and 939 deletions

View File

@@ -416,9 +416,7 @@ class AdminFeaturesModuleSettingController extends ModuleAdminController
if (isset($pos[2]) && (int) $pos[2] === $idFeatureBlock) {
if ($objFeatureBlock = new WkHotelFeaturesData((int) $pos[2])) {
if (isset($position)
&& $objFeatureBlock->updatePosition($way, $position, $idFeatureBlock)
) {
if (isset($position) && $objFeatureBlock->updatePosition($way, $position)) {
echo 'ok position '.(int) $position.' for amenity block '.(int) $pos[1].'\r\n';
} else {
echo '{"hasError" : true, "errors" : "Can not update amenity block position '.