projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0182dbc
)
!empty($date[0]) → !empty($date)
author
Andrei Shevchuk
<andrei@shvchk.com>
Sun, 20 Nov 2011 17:39:44 +0000 (21:39 +0400)
committer
Andrei Shevchuk
<andrei@shvchk.com>
Sun, 20 Nov 2011 17:39:44 +0000 (21:39 +0400)
lib/Twig/Extension/Core.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Extension/Core.php
b/lib/Twig/Extension/Core.php
index
11a0ee4
..
215ec6f
100644
(file)
--- a/
lib/Twig/Extension/Core.php
+++ b/
lib/Twig/Extension/Core.php
@@
-238,7
+238,7
@@
function twig_date_format_filter($date, $format = 'F j, Y H:i', $timezone = null
{
if (!$date instanceof DateTime && !$date instanceof DateInterval) {
if (ctype_digit((string) $date)
- || (!empty($date[0])
+ || (!empty($date)
&& ('-' === $date[0])
&& ctype_digit(substr($date, 1)))
) {