mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
gui fixes
This commit is contained in:
@ -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'];
|
||||
}
|
||||
|
||||
|
||||
|
@ -300,10 +300,10 @@ class ModelSearchMessage extends Model {
|
||||
$msg = $p;
|
||||
$p = '';
|
||||
}
|
||||
}
|
||||
|
||||
if($boundary) {
|
||||
$msg = substr($msg, 0, strlen($msg) - strlen($boundary) - 6);
|
||||
if($boundary) {
|
||||
$msg = substr($msg, 0, strlen($msg) - strlen($boundary) - 6);
|
||||
}
|
||||
}
|
||||
|
||||
return $has_journal;
|
||||
|
Reference in New Issue
Block a user