fixed export warnings/errors and when no campaign is selected for admins
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user