Added apiuser selection to preordercampaign

This commit is contained in:
Frank Schubert
2022-09-12 13:51:01 +02:00
parent 076adfb406
commit c66ffb1d2f
6 changed files with 171 additions and 1 deletions

View File

@@ -91,6 +91,16 @@ class UserModel {
$where .= " AND address_id=$addressid";
}
}
if(array_key_exists("apikey", $filter)) {
$apikey = $filter['apikey'];
if($apikey === true) {
$where .= " AND (apikey IS NOT NULL OR apikey <> '')";
} elseif($apikey === null) {
$where .= " AND (apikey IS NULL OR apikey='')";
}
}
//var_dump($filter, $where);exit;
return $where;
}