From 58cf287326cad8892ce61e29d897628c80d09343 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 27 Jul 2009 14:55:11 +0000 Subject: Fixes #1148: Correctly comparing strings to get OS. git-svn-id: https://code.elgg.org/elgg/trunk@3414 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/notification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/notification.php') 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}" -- cgit v1.2.3