Skip to content
Browse files

Check for both null AND false in get_local_date(). Fixes #28

  • Loading branch information...
1 parent ffaea43 commit f504e34cee6b8d21d72296b99fa73af194aba470 @rmccue rmccue committed with rmccue Feb 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 simplepie.inc
View
2 simplepie.inc
@@ -3648,7 +3648,7 @@ class SimplePie_Item
{
return $this->sanitize($this->get_date(''), SIMPLEPIE_CONSTRUCT_TEXT);
}
- elseif (($date = $this->get_date('U')) !== null)
+ elseif (($date = $this->get_date('U')) !== null && $date !== false)
{
return strftime($date_format, $date);
}

0 comments on commit f504e34

Please sign in to comment.
Something went wrong with that request. Please try again.