Skip to content

Commit

Permalink
num_rows() returns count
Browse files Browse the repository at this point in the history
  • Loading branch information
kishor10d committed Jan 4, 2018
1 parent 229db8e commit bc1429e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/user_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function userListingCount($searchText = '')
$this->db->where('BaseTbl.roleId !=', 1);
$query = $this->db->get();

return count($query->result());
return $query->num_rows();
}

/**
Expand Down

0 comments on commit bc1429e

Please sign in to comment.