Skip to content

Commit

Permalink
Exact Path
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Sep 16, 2022
1 parent 6ac8fe5 commit 1ce0910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index/panel.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

if ('POST' === $_SERVER['REQUEST_METHOD'] && empty($_POST['state']['y']['outdoorsy']['page']['header'])) {
if ('POST' === $_SERVER['REQUEST_METHOD'] && '.state' === $_['path'] && empty($_POST['state']['y']['outdoorsy']['page']['header'])) {
// Set default value to `false`
$_POST['state']['y']['outdoorsy']['page']['header'] = false;
}
Expand Down

0 comments on commit 1ce0910

Please sign in to comment.