]> _ Git - odl.git/commitdiff
wait #5108 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 7 Mar 2022 10:34:03 +0000 (11:34 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 7 Mar 2022 10:34:03 +0000 (11:34 +0100)
app/Models/Asset.php

index 45f9d9c09175752652c28bd5020a34caf06d7eb7..4ab4a4eba66d47a1dd69a6f62da2f1d0d8b4f0e1 100644 (file)
@@ -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);
     }
 
     /**