aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php4
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) {