diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-07 10:01:02 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-07 10:01:02 +0000 |
commit | 731660adbc2702f4566f8b5d106e01ccd722ab1c (patch) | |
tree | 9f2dac91dd9af8b871e547bfcb1a4e0d7b5e9ada /engine/lib/elgglib.php | |
parent | a7ab0d0d8b2b2be2a331125d0e6d3d2734b91f69 (diff) | |
download | elgg-731660adbc2702f4566f8b5d106e01ccd722ab1c.tar.gz elgg-731660adbc2702f4566f8b5d106e01ccd722ab1c.tar.bz2 |
Fixed friendly_time
git-svn-id: https://code.elgg.org/elgg/trunk@1305 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 97af49aec..9e7c708e0 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -644,9 +644,9 @@ * @param int $time A UNIX epoch timestamp
* @return string The friendly time
*/
- function friendly_time(int $time) {
+ function friendly_time($time) {
- $diff = time() - $time;
+ $diff = time() - ((int) $time);
if ($diff < 60) {
return elgg_echo("friendlytime:justnow");
} else if ($diff < 3600) {
|