From 166e4a4b58a02438825706e52d1aa3207c33505b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 28 Jun 2009 14:48:19 -0400 Subject: [PATCH] bad string compare in Status_network --- classes/Status_network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Status_network.php b/classes/Status_network.php index 8726096e3c..dbd722e88e 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))); } } -- 2.39.5