diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-07-21 15:30:35 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-07-21 15:30:35 +0000 |
commit | b8d653f1e8f5906d03d517be1fd9688b333c9102 (patch) | |
tree | 3afd1d6c3842352918501fc1c16f6a7247dd943e | |
parent | 6316803373227742a529ebe120a3b9bcdd64288e (diff) | |
download | brdo-b8d653f1e8f5906d03d517be1fd9688b333c9102.tar.gz brdo-b8d653f1e8f5906d03d517be1fd9688b333c9102.tar.bz2 |
- Fixing bad strpos usage (have to use the ===/!== operators to check for 'false' in this case)
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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') { |