mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
zerofix
This commit is contained in:
parent
b278a65a7c
commit
c47acdf705
@ -427,7 +427,16 @@ class Pastes extends CI_Model
|
||||
$this->db->select('SUM(spam_attempts) as sum');
|
||||
$query = $this->db->get('blocked_ips');
|
||||
$q = $query->result_array();
|
||||
$data['total_spam_attempts'] = $q[0]['sum'];
|
||||
|
||||
if ($q[0]['sum'] != '')
|
||||
{
|
||||
$total_spam_attempts = $q[0]['sum'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$total_spam_attempts = 0;
|
||||
}
|
||||
$data['total_spam_attempts'] = $total_spam_attempts;
|
||||
|
||||
//return
|
||||
return $data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user