CRM-14356 - CRM_Core_Session - Guard against unset value
authorTim Otten <totten@civicrm.org>
Fri, 11 Apr 2014 22:59:30 +0000 (15:59 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 11 Apr 2014 23:01:06 +0000 (16:01 -0700)
CRM/Core/Session.php

index c1a747b1ef9818400ceccfc4c8af8b279497898d..bebced13bc6c2f01e85f0b5eb785ff6841d1175b 100644 (file)
@@ -119,7 +119,8 @@ class CRM_Core_Session {
         }
         $config =& CRM_Core_Config::singleton();
         if ($config->userSystem->is_drupal && function_exists('drupal_session_start')) {
-          if ($GLOBALS['lazy_session'] != true) {
+          // https://issues.civicrm.org/jira/browse/CRM-14356
+          if (! (isset($GLOBALS['lazy_session']) && $GLOBALS['lazy_session'] == true)) {
             drupal_session_start();
           }
           $_SESSION = array();