Completed
Pull Request — master (#161)
by Matt
01:32
created
controller/admin_controller.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -294,11 +294,14 @@
 block discarded – undo
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
Please login to merge, or discard this patch.