Changeset 3002:c90142fc9280 for plugins/antispam
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/filters/class.dc.filter.words.php
r2996 r3002 218 218 } 219 219 220 $rs_max = $this->con->select('SELECT MAX(rule_id) FROM '.$this->table);221 $id = (integer) $rs_max->f(0) + 1;222 223 220 $cur = $this->con->openCursor($this->table); 224 $cur->rule_id = $id;225 221 $cur->rule_type = 'word'; 226 222 $cur->rule_content = (string) $content; … … 233 229 234 230 if (!$rs->isEmpty() && $general) { 235 $cur->update( );231 $cur->update('WHERE rule_id = '.$rs->rule_id); 236 232 } else { 233 $rs_max = $this->con->select('SELECT MAX(rule_id) FROM '.$this->table); 234 $cur->rule_id = (integer) $rs_max->f(0) + 1; 237 235 $cur->insert(); 238 236 }
Note: See TracChangeset
for help on using the changeset viewer.