Test Failed
Push — main ( e8e3a0...05a218 )
by chief
03:07
created
web/public/d/channel_update.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -219,8 +219,9 @@  discard block
 block discarded – undo
219 219
         if(!empty($_POST['solidcolor'])) {
220 220
             $__user_u->update_row($_SESSION['siteusername'], "background_option", $_POST['bgoption']);
221 221
 
222
-            if($_POST['bgoption'] == "solid")
223
-                $__user_u->update_row($_SESSION['siteusername'], "2012_bg", "");
222
+            if($_POST['bgoption'] == "solid") {
223
+                            $__user_u->update_row($_SESSION['siteusername'], "2012_bg", "");
224
+            }
224 225
 
225 226
             $__user_u->update_row($_SESSION['siteusername'], "primary_color", $_POST['solidcolor']);
226 227
         }
@@ -275,8 +276,9 @@  discard block
 block discarded – undo
275 276
                 $_POST['layout_channel'] == "featured"  || 
276 277
                 $_POST['layout_channel'] == "playlists" || 
277 278
                 $_POST['layout_channel'] == "everything"
278
-            )
279
-                $__user_u->update_row($_SESSION['siteusername'], "layout", $_POST['layout_channel']);
279
+            ) {
280
+                            $__user_u->update_row($_SESSION['siteusername'], "layout", $_POST['layout_channel']);
281
+            }
280 282
         }
281 283
 
282 284
     if(!empty($_POST['bgoptionset'])) {
Please login to merge, or discard this patch.