CC-5681: I18N: Fail to switch language
Check if Zend_Auth class exists with the autoloader
This commit is contained in:
parent
5d19a22b2d
commit
63ec20d9f1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue