aboutsummaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rwxr-xr-xapp/models/Entry.php2
-rw-r--r--app/models/Feed.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/Entry.php b/app/models/Entry.php
index 196823f67..899e98b00 100755
--- a/app/models/Entry.php
+++ b/app/models/Entry.php
@@ -137,7 +137,7 @@ class Entry extends Model {
public function isDay ($day) {
$date = $this->dateAdded(true);
- $today = strtotime('today');
+ $today = @strtotime('today');
$yesterday = $today - 86400;
if ($day === Days::TODAY &&
diff --git a/app/models/Feed.php b/app/models/Feed.php
index c1d0379a9..555759c9a 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -265,7 +265,7 @@ class Feed extends Model {
$title = html_only_entity_decode (strip_tags ($item->get_title ()));
$author = $item->get_author ();
$link = $item->get_permalink ();
- $date = strtotime ($item->get_date ());
+ $date = @strtotime ($item->get_date ());
// gestion des tags (catégorie == tag)
$tags_tmp = $item->get_categories ();