@@ -2578,6 +2578,7 @@ JAVASCRIPT;
$val = (array) $val;
$result = '"%'.implode(';', $val).'%"';
foreach ($val as $item) {
+ $item = trim($item);
$result .= ' OR '.$col.' LIKE "%'.$item.'%"';
}
$val = $result;
@@ -462,7 +462,7 @@ class SessionManager
$isMakingOrder = false;
if ($get_count == true) {
- $select = " SELECT count(*) as total_rows";
+ $select = " SELECT count(DISTINCT s.id) as total_rows";
} else {
$select ="
SELECT DISTINCT