aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/notification.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/notification.php')
-rw-r--r--engine/lib/notification.php2
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}"