Add check that GET array key exists
[MAILPOET-3550]
This commit is contained in:
@@ -14,7 +14,7 @@ class Router {
|
|||||||
|
|
||||||
public function checkRedirects(): void {
|
public function checkRedirects(): void {
|
||||||
$url = null;
|
$url = null;
|
||||||
if ($_GET['page'] === 'mailpoet-newsletters') {
|
if (isset($_GET['page']) && $_GET['page'] === 'mailpoet-newsletters') {
|
||||||
$url = $this->checkNewslettersRedirect();
|
$url = $this->checkNewslettersRedirect();
|
||||||
}
|
}
|
||||||
if (!$url) return;
|
if (!$url) return;
|
||||||
|
Reference in New Issue
Block a user