svn: /web/doc-editor/trunk/php/ NewsReader.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sat, 12 Dec 2009 20:32:22 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=292044

Log:
Inhib warn about date() & strtotime()

Changed paths:
    U   web/doc-editor/trunk/php/NewsReader.php

Modified: web/doc-editor/trunk/php/NewsReader.php
===================================================================
--- web/doc-editor/trunk/php/NewsReader.php	2009-12-12 20:28:44 UTC (rev 292043)
+++ web/doc-editor/trunk/php/NewsReader.php	2009-12-12 20:32:22 UTC (rev 292044)
@@ -48,7 +48,7 @@
             $result[$i]['title'] = (string) $item->title;
             $result[$i]['description'] = preg_replace('/(<a href[^>]+">)([^>]+)(<\/a>)/', "$2", (string) $item->description);
             $result[$i]['link'] = (string) $item->link;
-            $result[$i]['pubDate'] = date('Y/m/d H:i:s', strtotime((string) $item->pubDate));
+            $result[$i]['pubDate'] = @date('Y/m/d H:i:s', @strtotime((string) $item->pubDate));
             $i++;
         }
         return $result;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.