...
This commit is contained in:
parent
9526252f38
commit
aa70d11a5b
@ -307,14 +307,12 @@ class MarketController extends BaseAuthedController
|
||||
};
|
||||
$search_filter_fn = function ($f) {
|
||||
$str = '';
|
||||
error_log('search_filter ' . json_encode($f));
|
||||
$arr_options = array();
|
||||
foreach ($f as $v) {
|
||||
if (!empty($v)) {
|
||||
array_push($arr_options, 'c_name=\'' . $v . '\' OR token_id=\'' . $v . '\' ');
|
||||
}
|
||||
}
|
||||
error_log('$$search_filter ' . json_encode($arr_options));
|
||||
if (count($arr_options) > 0) {
|
||||
$str = implode('OR ', $arr_options);
|
||||
$str = 'AND (' . $str . ') ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user