aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/sessions.php2
-rw-r--r--engine/lib/upgrades/create_upgrade.php2
-rw-r--r--engine/lib/users.php3
3 files changed, 3 insertions, 4 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index eb451f05a..3dd95aa2f 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -616,7 +616,7 @@ function _elgg_session_destroy($id) {
global $sess_save_path;
$sess_file = "$sess_save_path/sess_$id";
- return (@unlink($sess_file));
+ return @unlink($sess_file);
}
return false;
diff --git a/engine/lib/upgrades/create_upgrade.php b/engine/lib/upgrades/create_upgrade.php
index f0fa9b594..b34f31b7e 100644
--- a/engine/lib/upgrades/create_upgrade.php
+++ b/engine/lib/upgrades/create_upgrade.php
@@ -128,7 +128,7 @@ function elgg_set_version_dot_php_version($version) {
rewind($h);
- fputs($h, $out);
+ fwrite($h, $out);
fclose($h);
return true;
}
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 7a6245261..7365a6b68 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1201,14 +1201,13 @@ function set_last_login($user_guid) {
* @param string $object_type user
* @param ElggUser $object User object
*
- * @return bool
+ * @return void
* @access private
*/
function user_create_hook_add_site_relationship($event, $object_type, $object) {
global $CONFIG;
add_entity_relationship($object->getGUID(), 'member_of_site', elgg_get_site_entity()->guid);
- return true;
}
/**