Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor session fixes

  • Loading branch information...
commit 13fb8e6d83bb50eb3ef28f90f632216556ed4996 1 parent 8ef0e83
@brendonh authored
View
2  yii/modules/Yiidis/components/FacebookConnection.php
@@ -18,7 +18,7 @@ public function getUser() {
$session = RedisSession::ensure($sessionID);
if ($session->userID) {
- return $session->getUser();
+ return $session->getUser();
}
$fbUser = $this->conn->getUser();
View
6 yii/modules/Yiidis/components/FacebookUser.php
@@ -7,8 +7,10 @@ class FacebookUser extends RedisModel {
public $name;
public function afterConstruct() {
- $userClass = Yii::app()->params->appUserClass;
- $this->attachBehavior("appUserClass", $userClass);
+ if (isset(Yii::app()->params->appUserClass)) {
+ $userClass = Yii::app()->params->appUserClass;
+ $this->attachBehavior("appUserClass", $userClass);
+ }
}
}
View
2  yii/modules/Yiidis/components/YiidisController.php
@@ -22,7 +22,7 @@ public function afterAction() {
public function getSession() {
$sessionID = Yii::app()->session->sessionID;
- return YiidisSession::ensure($sessionID);
+ return RedisSession::ensure($sessionID);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.