aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-08-05 21:03:35 -0400
committerSteve Clay <steve@mrclay.org>2012-08-05 21:03:35 -0400
commitef351d0cf8a866cb40285e71fe5ed2b980bd11ed (patch)
tree7e5c43f03e2b2a4d13e6cee3a7e850b3ad811597 /engine/classes
parent0a0203a418a082a38c5c700ea11377153fa37555 (diff)
downloadelgg-ef351d0cf8a866cb40285e71fe5ed2b980bd11ed.tar.gz
elgg-ef351d0cf8a866cb40285e71fe5ed2b980bd11ed.tar.bz2
Fixes #4764: Twitter login supports persistent and referrer forwarding
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggSession.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/engine/classes/ElggSession.php b/engine/classes/ElggSession.php
index 13a33736c..9750f063e 100644
--- a/engine/classes/ElggSession.php
+++ b/engine/classes/ElggSession.php
@@ -54,7 +54,7 @@ class ElggSession implements ArrayAccess {
*
* @param mixed $key Name
*
- * @return void
+ * @return mixed
*/
function offsetGet($key) {
if (!ElggSession::$__localcache) {
@@ -98,7 +98,7 @@ class ElggSession implements ArrayAccess {
*
* @param int $offset Offset
*
- * @return int
+ * @return bool
*/
function offsetExists($offset) {
if (isset(ElggSession::$__localcache[$offset])) {
@@ -112,6 +112,8 @@ class ElggSession implements ArrayAccess {
if ($this->offsetGet($offset)) {
return true;
}
+
+ return false;
}
@@ -132,10 +134,10 @@ class ElggSession implements ArrayAccess {
* @param string $key Name
* @param mixed $value Value
*
- * @return mixed
+ * @return void
*/
function set($key, $value) {
- return $this->offsetSet($key, $value);
+ $this->offsetSet($key, $value);
}
/**
@@ -143,9 +145,9 @@ class ElggSession implements ArrayAccess {
*
* @param string $key Name
*
- * @return bool
+ * @return void
*/
function del($key) {
- return $this->offsetUnset($key);
+ $this->offsetUnset($key);
}
}