aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggSession.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes/ElggSession.php')
-rw-r--r--engine/classes/ElggSession.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/engine/classes/ElggSession.php b/engine/classes/ElggSession.php
index 1d59aaacc..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) {
@@ -70,7 +70,7 @@ class ElggSession implements ArrayAccess {
}
$value = NULL;
- $value = trigger_plugin_hook('session:get', $key, NULL, $value);
+ $value = elgg_trigger_plugin_hook('session:get', $key, NULL, $value);
ElggSession::$__localcache[$key] = $value;
@@ -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);
}
-} \ No newline at end of file
+}