summaryrefslogtreecommitdiff
path: root/classes/Status_network.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-28 14:48:19 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-06-28 14:48:19 -0400
commit166e4a4b58a02438825706e52d1aa3207c33505b (patch)
tree16e570d4e6e71b2db5b3a57ab379caeac3d4bc29 /classes/Status_network.php
parentd4f1637f8a20d9e4ac059930b7ba444473f5047b (diff)
bad string compare in Status_network
Diffstat (limited to 'classes/Status_network.php')
-rw-r--r--classes/Status_network.php2
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)));
}
}