diff options
| author | 2013-12-02 20:12:55 +0100 | |
|---|---|---|
| committer | 2013-12-02 20:12:55 +0100 | |
| commit | 56b269cef6bc54fa8d8fc69ff0f0e8b2ffb36afb (patch) | |
| tree | 6870c446f15b997d1c9b15b8d232eadce1a78508 /app | |
| parent | ee6a1bdde381a4ac95d8c7393deda3ebbaae1ead (diff) | |
PHP : suppression autres alertes
Voir https://github.com/marienfressinaud/FreshRSS/issues/310
Diffstat (limited to 'app')
| -rw-r--r-- | app/layout/nav_menu.phtml | 2 | ||||
| -rwxr-xr-x | app/models/Entry.php | 2 | ||||
| -rw-r--r-- | app/models/Feed.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index 4b4945108..c71497ced 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -70,7 +70,7 @@ <li class="item"><a href="<?php echo $markReadUrl; ?>"><?php echo $string_mark; ?></a></li> <li class="separator"></li> <?php - $today = strtotime('today'); + $today = @strtotime('today'); $one_week = $today - 604800; ?> <li class="item"><a href="<?php echo _url ('entry', 'read', 'is_read', 1, 'get', $get, 'idMax', $today . '000000'); ?>"><?php echo Translate::t ('before_one_day'); ?></a></li> 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 (); |
