From 2e1525b0066efa50824f3ee23babd643219f0ec8 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 1 Feb 2010 23:16:14 +0000 Subject: 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 --- engine/lib/filestore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') 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); -- cgit v1.2.3