Added filters to Preordercampaign
This commit is contained in:
@@ -115,9 +115,11 @@ class NetworkModel {
|
||||
}
|
||||
|
||||
if(array_key_exists("owner_id", $filter)) {
|
||||
$ownerid= $filter['owner_id'];
|
||||
if(is_numeric($ownerid)) {
|
||||
$where .= " AND owner_id=$ownerid";
|
||||
$owner_id = $filter['owner_id'];
|
||||
if(is_numeric($owner_id)) {
|
||||
$where .= " AND owner_id=$owner_id";
|
||||
} elseif(is_array($owner_id) && count($owner_id)) {
|
||||
$where .= " AND owner_id IN (". implode(",", $owner_id).")";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user