From ddead1e611034ccf45e4b249bb4f5457fd573cba Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 28 Apr 2011 15:30:23 -0700 Subject: [PATCH] Check for unavailable site nicknames in DomainStatusNetwork --- .../DomainStatusNetwork/DomainStatusNetworkPlugin.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php b/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php index aa7929ef02..5debb5ef76 100644 --- a/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php +++ b/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php @@ -128,7 +128,14 @@ class DomainStatusNetworkPlugin extends Plugin static function nicknameAvailable($nickname) { $sn = Status_network::staticGet('nickname', $nickname); - return empty($sn); + if (!empty($sn)) { + return false; + } + $usn = Unavailable_status_network::staticGet('nickname', $nickname); + if (!empty($usn)) { + return false; + } + return true; } static function nicknameForDomain($domain) -- 2.39.5