Commit 4758d09a authored by Len Swaneveld's avatar Len Swaneveld Committed by Damien McKenna
Browse files

Issue #3266892 by Lendude, DamienMcKenna, anneke_vde: Passing null to...

Issue #3266892 by Lendude, DamienMcKenna, anneke_vde: Passing null to parameter #1 ($datetime) of type string is deprecated.
parent 8368d0a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -302,7 +302,7 @@ function views_rss_core_preprocess_views_view_rss(&$variables) {
      foreach ($row['#row']->elements as $element) {
        if ($element['key'] === 'pubDate') {
          $this_pub_date = (string) $element['value'];
          if (strtotime($this_pub_date) > strtotime($max_pub_date)) {
          if (!$max_pub_date || strtotime($this_pub_date) > strtotime($max_pub_date)) {
            $max_pub_date = $this_pub_date;
          }
          break;