CC-5681: I18N: Fail to switch language

Check if Zend_Auth class exists with the autoloader
This commit is contained in:
drigato 2014-02-03 12:33:35 -05:00
parent 5d19a22b2d
commit 63ec20d9f1
1 changed files with 3 additions and 2 deletions

View File

@ -7,8 +7,9 @@ class Application_Model_Preference
private static function getUserId()
{
//called from a daemon process
if (!class_exists("Zend_Auth", false) || !Zend_Auth::getInstance()->hasIdentity()) {
//pass in true so the check is made with the autoloader
//we need this check because saas calls this function from outside Zend
if (!class_exists("Zend_Auth", true) || !Zend_Auth::getInstance()->hasIdentity()) {
$userId = null;
}
else {