Commit b8d653f1 authored by Steven Wittens's avatar Steven Wittens

- Fixing bad strpos usage (have to use the ===/!== operators to check for 'false' in this case)

parent 63168033
......@@ -934,10 +934,10 @@ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NUL
$date = '';
for ($i = 0; $i < $max; $i++) {
$c = $format{$i};
if (strpos('AaDFlM', $c)) {
if (strpos('AaDFlM', $c) !== false) {
$date .= t(gmdate($c, $timestamp));
}
else if (strpos('BdgGhHiIjLmnsStTUwWYyz', $c)) {
else if (strpos('BdgGhHiIjLmnsStTUwWYyz', $c) !== false) {
$date .= gmdate($c, $timestamp);
}
else if ($c == 'r') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment