diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-01 23:16:14 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-01 23:16:14 +0000 |
commit | 2e1525b0066efa50824f3ee23babd643219f0ec8 (patch) | |
tree | 93af60c9af3dc938e16d3538fa56e923afaeca97 | |
parent | 222cc0e52f45e31083bdcc3efe6916c62b9d4609 (diff) | |
download | elgg-2e1525b0066efa50824f3ee23babd643219f0ec8.tar.gz elgg-2e1525b0066efa50824f3ee23babd643219f0ec8.tar.bz2 |
PHP complains about not casting the timestampt to int for use in date().
git-svn-id: http://code.elgg.org/elgg/trunk@3898 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/filestore.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php index f5aece941..d131154c6 100644 --- a/engine/lib/filestore.php +++ b/engine/lib/filestore.php @@ -1415,7 +1415,7 @@ function delete_directory($directory) { function clear_user_files($user) { global $CONFIG; - $time_created = date('Y/m/d', $user->time_created); + $time_created = date('Y/m/d', (int)$user->time_created); $file_path = "$CONFIG->dataroot$time_created/$user->guid"; if (file_exists($file_path)) { delete_directory($file_path); |