summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-28 14:45:33 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-06-28 14:45:33 -0400
commitd4f1637f8a20d9e4ac059930b7ba444473f5047b (patch)
treed85ef18be89e9b3968e4e77ab93131528246ac54 /classes
parent871f598dcc81d7018f25590d767591722bb977f2 (diff)
fallback for www. addresses
Diffstat (limited to 'classes')
-rw-r--r--classes/Status_network.php7
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)) {