]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
PHP complains about not casting the timestampt to int for use in date().
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 23:16:14 +0000 (23:16 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 23:16:14 +0000 (23:16 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3898 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/filestore.php

index f5aece94188c7e3fce59bea8fb0a65546b8880f7..d131154c6698edf7e014e6e1e3c2fa8c583edf84 100644 (file)
@@ -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);