aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-02-09 08:01:12 -0500
committerCash Costello <cash.costello@gmail.com>2013-02-09 08:01:12 -0500
commitf416d7ba66000d485260a8e63962541afa248320 (patch)
tree854c25506b0caade47b84ca8fdd24148666a294f
parent707df9db27cf2154910978427b9844448bcf931a (diff)
downloadelgg-f416d7ba66000d485260a8e63962541afa248320.tar.gz
elgg-f416d7ba66000d485260a8e63962541afa248320.tar.bz2
small changes to previous commit from Steve's cleanup
-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;
}
/**