Completed
Push — master ( 6d8026...334e81 )
by Matt
13s queued 10s
created
controller/admin_controller.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,11 +296,14 @@
 block discarded – undo
296 296
 		// Format autogroups_excluded_groups for storage in the db
297 297
 		$data['autogroups_excluded_groups'] = !empty($data['autogroups_excluded_groups']) ? json_encode($data['autogroups_excluded_groups']) : '';
298 298
 
299
-		if ($autogroups_id != 0) // Update existing auto group data
299
+		if ($autogroups_id != 0)
300
+		{
301
+			// Update existing auto group data
300 302
 		{
301 303
 			$sql = 'UPDATE ' . $this->autogroups_rules_table . '
302 304
 				SET ' . $this->db->sql_build_array('UPDATE', $data) . '
303 305
 				WHERE autogroups_id = ' . (int) $autogroups_id;
306
+		}
304 307
 			$this->db->sql_query($sql);
305 308
 		}
306 309
 		else // Insert new auto group data
Please login to merge, or discard this patch.