aboutsummaryrefslogtreecommitdiffstats
path: root/mod/feed.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-08 20:35:15 -0700
committerfriendica <info@friendica.com>2014-09-08 20:35:15 -0700
commitc6d07feff575862b5db8d05e02be6375e51034c7 (patch)
tree8d1bf75a545075753033c47ee28f4d4ae2a96517 /mod/feed.php
parent8fbeb370db7d1ec16a2f221fb7f022aebe7be109 (diff)
downloadvolse-hubzilla-c6d07feff575862b5db8d05e02be6375e51034c7.tar.gz
volse-hubzilla-c6d07feff575862b5db8d05e02be6375e51034c7.tar.bz2
volse-hubzilla-c6d07feff575862b5db8d05e02be6375e51034c7.zip
This is long overdue - use a symblic constant NULL_DATE instead of the easily mis-typed sequence '0000-00-00 00:00:00'
Diffstat (limited to 'mod/feed.php')
-rw-r--r--mod/feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/feed.php b/mod/feed.php
index fdbe4db8c..776f9787f 100644
--- a/mod/feed.php
+++ b/mod/feed.php
@@ -7,7 +7,7 @@ function feed_init(&$a) {
$params = array();
- $params['begin'] = ((x($_REQUEST,'date_begin')) ? $_REQUEST['date_begin'] : '0000-00-00 00:00:00');
+ $params['begin'] = ((x($_REQUEST,'date_begin')) ? $_REQUEST['date_begin'] : NULL_DATE);
$params['end'] = ((x($_REQUEST,'date_end')) ? $_REQUEST['date_end'] : '');
$params['type'] = ((stristr(argv(0),'json')) ? 'json' : 'xml');
$params['pages'] = ((x($_REQUEST,'pages')) ? intval($_REQUEST['pages']) : 0);