summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-07-21 15:30:35 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-07-21 15:30:35 +0000
commitb8d653f1e8f5906d03d517be1fd9688b333c9102 (patch)
tree3afd1d6c3842352918501fc1c16f6a7247dd943e
parent6316803373227742a529ebe120a3b9bcdd64288e (diff)
downloadbrdo-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.inc4
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') {