From: Vincent Vanwaelscappel Date: Mon, 7 Mar 2022 10:34:03 +0000 (+0100) Subject: wait #5108 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2b524459b1e63ebf8c2b66ffa79c0635895d35d0;p=odl.git wait #5108 @0:10 --- 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); } /**