diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-27 14:55:11 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-27 14:55:11 +0000 |
commit | 58cf287326cad8892ce61e29d897628c80d09343 (patch) | |
tree | 747b549c9fdfcf34314d44fb77e21df935d9eccb /engine | |
parent | 6ff4866571608772b7e3419ae9799699c19c72af (diff) | |
download | elgg-58cf287326cad8892ce61e29d897628c80d09343.tar.gz elgg-58cf287326cad8892ce61e29d897628c80d09343.tar.bz2 |
Fixes #1148: Correctly comparing strings to get OS.
git-svn-id: https://code.elgg.org/elgg/trunk@3414 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/notification.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php index 44d896d18..554480390 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -261,7 +261,7 @@ $header_eol = "\n"; // Allow non-RFC 2822 mail headers to support some broken MTAs
$from_email = "\"$sitename\" <$from>"; - if (strcasecmp(substr(PHP_OS, 0 , 3), 'WIN')) + if (strtolower(substr(PHP_OS, 0 , 3)) == 'win') $from_email = "$from"; // Windows is somewhat broken, so we use a different format from header $headers = "From: $from_email{$header_eol}"
|