Hacky fix for SAAS-1090 - Allow airtime-system to work with session optimizations

This commit is contained in:
Albert Santoni 2015-09-28 17:48:04 -04:00
parent e03428327c
commit 943048dd87
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class Application_Model_Preference
{
//pass in true so the check is made with the autoloader
//we need this check because saas calls this function from outside Zend
if (!Zend_Session::isStarted() || !class_exists("Zend_Auth", true) || !Zend_Auth::getInstance()->hasIdentity()) {
if (!class_exists("Zend_Session", true) || !Zend_Session::isStarted() || !class_exists("Zend_Auth", true) || !Zend_Auth::getInstance()->hasIdentity()) {
$userId = null;
} else {
$auth = Zend_Auth::getInstance();