mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:20:12 +01:00
accounting fix
This commit is contained in:
parent
e7c26dbcc7
commit
5c4ff2844f
@ -77,7 +77,7 @@ class ModelAccountingAccounting extends Model
|
||||
|
||||
$parts = explode('@',$username);
|
||||
|
||||
if ( isset($accepteddomains[ $parts[1] ]) ) {
|
||||
if ( isset($parts[1]) && isset($accepteddomains[ $parts[1] ]) ) {
|
||||
$addusers = $this->db->query("INSERT INTO " . TABLE_STAT_COUNTER . " (`date`,`email`,`domain`,`sent`,`recd`,`sentsize`,`recdsize`) VALUES($date,'$username','".$parts[1]."',$sent,$recd,$sizesent,$sizerecd);");
|
||||
$return['addedstats'] = $return['addedstats'] + $this->db->countAffected();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user