]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
LinkDB::filterDay(): check input date format
[github/shaarli/Shaarli.git] / index.php
index 561f946e9a52640ab2a4853f201ee92a92daaef5..5771dd8880043d48ada8b2aa1d36ea77d6fd18e0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -957,7 +957,13 @@ function showDaily()
         if ($i<count($days)-1) $nextday=$days[$i+1];
     }
 
-    $linksToDisplay=$LINKSDB->filterDay($day);
+    try {
+        $linksToDisplay = $LINKSDB->filterDay($day);
+    } catch (Exception $exc) {
+        error_log($exc);
+        $linksToDisplay = [];
+    }
+
     // We pre-format some fields for proper output.
     foreach($linksToDisplay as $key=>$link)
     {