X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c20b44263a89d8bf1a78bfa632daaae3cb4f1da2..a52e94e7d37efbd5356bb8a5b65f577e8500aed5:/ajaxIsAvailable.php?ds=sidebyside 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']));