mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-10-01 13:00:20 +02:00
gui fixes
This commit is contained in:
1 parent
863d9ecb50
commit
1b9e2e639d
5 files changed
+126
-8
No files matched your search
@@ -72,16 +72,16 @@ class ModelGroupGroup extends Model {
|
||||
$where_cond = "";
|
||||
$Q = array();
|
||||
|
||||
$search = preg_replace("/\s{1,}/", "", $search) . '%';
|
||||
if($search) {
|
||||
$search = preg_replace("/\s{1,}/", "", $search) . '%';
|
||||
|
||||
if($search){
|
||||
$where_cond .= " WHERE `groupname` like '?'";
|
||||
array_push($Q, $search);
|
||||
}
|
||||
|
||||
$query = $this->db->query("SELECT COUNT(*) AS num FROM `" . TABLE_GROUP . "` $where_cond", $Q);
|
||||
|
||||
return $query->num_rows;
|
||||
return $query->row['num'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user