diff options
Diffstat (limited to 'classes/Status_network.php')
-rw-r--r-- | classes/Status_network.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/Status_network.php b/classes/Status_network.php index f8d6756b6..8726096e3 100644 --- a/classes/Status_network.php +++ b/classes/Status_network.php @@ -132,6 +132,13 @@ class Status_network extends DB_DataObject } } else { $sn = self::memGet('hostname', strtolower($servername)); + + if (empty($sn)) { + // Try for a no-www address + if (strncasecmp($servername, 'www.', 4)) { + $sn = self::memGet('hostname', strtolower(substr($servername, 4))); + } + } } if (!empty($sn)) { |