fixed export warnings/errors and when no campaign is selected for admins

This commit is contained in:
2025-12-10 09:07:16 +01:00
parent a8b8ae343b
commit 0be058953a
3 changed files with 30 additions and 25 deletions
+6 -6
View File
@@ -563,13 +563,13 @@ class PreorderModel
mfLoghandler::singleton()->debug($sql);
$res = $db->query($sql);
// hack for Preorder::exportAction
if ($returnDBRessource) {
return $res;
}
if ($db->num_rows($res)) {
// hack for Preorder::exportAction
if ($returnDBRessource) {
return $res;
}
while ($data = $db->fetch_object($res)) {
if ($returnArray) {
$items[] = $data;