X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/bce919af7b49bbd06223f79b8c37a53a3d263ff0..c7f63c8b9b12efd7b3c10b9f80cda06eaf32068f:/ajaxIsAvailable.php diff --git a/ajaxIsAvailable.php b/ajaxIsAvailable.php index 80883c6..8cd10c0 100644 --- a/ajaxIsAvailable.php +++ b/ajaxIsAvailable.php @@ -1,6 +1,6 @@ isReserved($_GET['username'])) { - $result = 'false'; -} else { - $result = $userservice->getUserByUsername($_GET['username']) ? 'false' : 'true'; -} -?> - - isAvailable - - \ No newline at end of file +$userservice =& ServiceFactory::getServiceInstance('UserService'); +echo !($userservice->isReserved($_GET['username']) || $userservice->getUserByUsername($_GET['username']));