@@ -294,11 +294,14 @@ |
||
294 | 294 | // Format data |
295 | 295 | $data['autogroups_excluded_groups'] = !empty($data['autogroups_excluded_groups']) ? json_encode($data['autogroups_excluded_groups']) : ''; |
296 | 296 | |
297 | - if ($autogroups_id != 0) // Update existing auto group data |
|
297 | + if ($autogroups_id != 0) |
|
298 | + { |
|
299 | + // Update existing auto group data |
|
298 | 300 | { |
299 | 301 | $sql = 'UPDATE ' . $this->autogroups_rules_table . ' |
300 | 302 | SET ' . $this->db->sql_build_array('UPDATE', $data) . ' |
301 | 303 | WHERE autogroups_id = ' . (int) $autogroups_id; |
304 | + } |
|
302 | 305 | $this->db->sql_query($sql); |
303 | 306 | } |
304 | 307 | else // Insert new auto group data |