Add check that GET array key exists

[MAILPOET-3550]
This commit is contained in:
Jan Lysý
2021-04-06 08:49:35 +02:00
committed by Veljko V
parent aad4ea3ece
commit 0ff3f9bf04

View File

@ -14,7 +14,7 @@ class Router {
public function checkRedirects(): void {
$url = null;
if ($_GET['page'] === 'mailpoet-newsletters') {
if (isset($_GET['page']) && $_GET['page'] === 'mailpoet-newsletters') {
$url = $this->checkNewslettersRedirect();
}
if (!$url) return;