From 2b524459b1e63ebf8c2b66ffa79c0635895d35d0 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 7 Mar 2022 11:34:03 +0100 Subject: [PATCH] wait #5108 @0:10 --- app/Models/Asset.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 45f9d9c..4ab4a4e 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -80,7 +80,10 @@ class Asset extends CubistMagicAbstractModel $res = max(filemtime($item->getPath()), $res); } } - return date($res, 'Y-m-d H:i'); + if (!$res) { + return '-'; + } + return date('Y-m-d H:i',$res); } /** -- 2.39.5