From: Evan Prodromou Date: Sun, 28 Jun 2009 18:48:19 +0000 (-0400) Subject: bad string compare in Status_network X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=166e4a4b58a02438825706e52d1aa3207c33505b;p=quix0rs-gnu-social.git bad string compare in Status_network --- 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))); } }