From b8d653f1e8f5906d03d517be1fd9688b333c9102 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Wed, 21 Jul 2004 15:30:35 +0000 Subject: - Fixing bad strpos usage (have to use the ===/!== operators to check for 'false' in this case) --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index d26f4d790..2c8ce54b1 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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') { -- cgit v1.2.3