Skip to content

Commit

Permalink
Merge pull request #45 from newfold-labs/fix/undefined-array-key
Browse files Browse the repository at this point in the history
Fix undefined array key
  • Loading branch information
circlecube authored Dec 13, 2024
2 parents edcda7d + f6e0e4d commit 6f64cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/ComingSoon.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function notice_display() {
* Load the coming soon page, if necessary.
*/
public function maybe_load_template() {
if ( ! is_user_logged_in() || 'preview=coming_soon' === $_SERVER['QUERY_STRING'] ) {
if ( ! is_user_logged_in() || ( isset( $_SERVER['QUERY_STRING'] ) && 'preview=coming_soon' === $_SERVER['QUERY_STRING'] ) ) {
if ( isComingSoonActive() ) {
self::coming_soon_content( $this->args );
die();
Expand Down

0 comments on commit 6f64cc0

Please sign in to comment.