diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-28 14:48:19 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-28 14:48:19 -0400 |
commit | 166e4a4b58a02438825706e52d1aa3207c33505b (patch) | |
tree | 16e570d4e6e71b2db5b3a57ab379caeac3d4bc29 | |
parent | d4f1637f8a20d9e4ac059930b7ba444473f5047b (diff) |
bad string compare in Status_network
-rw-r--r-- | classes/Status_network.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Status_network.php b/classes/Status_network.php index 8726096e3..dbd722e88 100644 --- a/classes/Status_network.php +++ b/classes/Status_network.php @@ -135,7 +135,7 @@ class Status_network extends DB_DataObject if (empty($sn)) { // Try for a no-www address - if (strncasecmp($servername, 'www.', 4)) { + if (0 == strncasecmp($servername, 'www.', 4)) { $sn = self::memGet('hostname', strtolower(substr($servername, 4))); } } |