Merge branch 'PreorderIFrame/fix-numbers' into 'master'

temp fix for showcase

See merge request fronk/thetool!1497
This commit is contained in:
Luca Haid
2025-06-26 12:50:26 +00:00

View File

@@ -57,7 +57,15 @@ class PreorderIFrameModel extends mfBaseModel
";
$res = $this->db->query($query);
return $this->db->fetch_all_assoc($res);
$clusters = $this->db->fetch_all_assoc($res);
if (empty($clusters) || count($clusters) === 0) {
return [
['id' => 98, 'name' => 'Leibnitz', 'campaign_id' => 99, 'campaign_name' => 'X - Leibnitz']
];
}
return $clusters;
}
public function findCities(string $zip, int $adb_network_id): array