]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
bad string compare in Status_network
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 28 Jun 2009 18:48:19 +0000 (14:48 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 28 Jun 2009 18:48:19 +0000 (14:48 -0400)
classes/Status_network.php

index 8726096e3c38ac98e3dd9bc32463502be8daea1d..dbd722e88e9ba8e99602aeca1211e028f9623a5b 100644 (file)
@@ -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)));
                 }
             }