forked from GNUsocial/gnu-social
bad string compare in Status_network
This commit is contained in:
parent
d4f1637f8a
commit
166e4a4b58
@ -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)));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user