diff options
author | VirtualTam <tamisier.aurelien@gmail.com> | 2015-07-09 01:00:40 +0200 |
---|---|---|
committer | VirtualTam <tamisier.aurelien@gmail.com> | 2015-07-09 01:00:40 +0200 |
commit | 7f1dfd1c12a143b324fbe68213a49de0586febfa (patch) | |
tree | cfc8e4d2c8469ac16910c18d59a07b23d0348fbe /index.php | |
parent | 46d83c20d77276e9e94c54e31b29222f762e13dd (diff) | |
parent | 9186ab95943b7c2467a0f27f30bed9db3c589b9d (diff) | |
download | Shaarli-7f1dfd1c12a143b324fbe68213a49de0586febfa.tar.gz Shaarli-7f1dfd1c12a143b324fbe68213a49de0586febfa.tar.zst Shaarli-7f1dfd1c12a143b324fbe68213a49de0586febfa.zip |
Merge pull request #251 from virtualtam/linkdb/date-format
LinkDB::filterDay(): check input date format
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -957,7 +957,13 @@ function showDaily() | |||
957 | if ($i<count($days)-1) $nextday=$days[$i+1]; | 957 | if ($i<count($days)-1) $nextday=$days[$i+1]; |
958 | } | 958 | } |
959 | 959 | ||
960 | $linksToDisplay=$LINKSDB->filterDay($day); | 960 | try { |
961 | $linksToDisplay = $LINKSDB->filterDay($day); | ||
962 | } catch (Exception $exc) { | ||
963 | error_log($exc); | ||
964 | $linksToDisplay = []; | ||
965 | } | ||
966 | |||
961 | // We pre-format some fields for proper output. | 967 | // We pre-format some fields for proper output. |
962 | foreach($linksToDisplay as $key=>$link) | 968 | foreach($linksToDisplay as $key=>$link) |
963 | { | 969 | { |