summaryrefslogtreecommitdiffstats
path: root/lib/private/template/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/template/functions.php')
-rw-r--r--lib/private/template/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/template/functions.php b/lib/private/template/functions.php
index 858134dd8c6..0aa2b27b96b 100644
--- a/lib/private/template/functions.php
+++ b/lib/private/template/functions.php
@@ -104,9 +104,9 @@ function strip_time($timestamp){
* @param bool $dateOnly whether to strip time information
* @return formatted timestamp
*/
-function relative_modified_date($timestamp, $fromTime, $dateOnly = false) {
+function relative_modified_date($timestamp, $fromTime = null, $dateOnly = false) {
$l=OC_L10N::get('lib');
- if (!isset($fromTime)){
+ if (!isset($fromTime) || $fromTime === null){
$fromTime = time();
}
if ($dateOnly){