Fix conditional
authorCésar <c.jimenez@ixiam.com>
Fri, 24 Nov 2023 12:00:09 +0000 (13:00 +0100)
committerCésar <c.jimenez@ixiam.com>
Fri, 24 Nov 2023 12:00:09 +0000 (13:00 +0100)
CRM/Mailing/Page/Common.php

index 680777753a907526d1b831113bbcb31dba6da3e4..42b6a0e383f61a63418ad22fc15288b04037cbdb 100644 (file)
@@ -44,7 +44,7 @@ class CRM_Mailing_Page_Common extends CRM_Core_Page {
     }
 
     $cancel = CRM_Utils_Request::retrieve("_qf_{$this->_type}_cancel", 'String');
-    if ($cancel) {
+    if (isset($cancel)) {
       $config = CRM_Core_Config::singleton();
       CRM_Utils_System::redirect($config->userFrameworkBaseURL);
     }