Added apiuser selection to preordercampaign
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user