aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-12-17 11:59:01 -0500
committerBrett Profitt <brett.profitt@gmail.com>2012-12-17 11:59:01 -0500
commit15e5caa7849cf452c1d2383a3c35f6884ee57709 (patch)
tree49c3efe6542d1e2089a1ae5fdd8bd031abf38803 /engine/classes
parentb538cc3339ff886e309feb318cdea374423d1683 (diff)
parentd809ded90fb5213f1a7ec59c776f92ea654454d6 (diff)
downloadelgg-15e5caa7849cf452c1d2383a3c35f6884ee57709.tar.gz
elgg-15e5caa7849cf452c1d2383a3c35f6884ee57709.tar.bz2
Merge branch 'pr-358' into 1.8
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);
}
}