X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c20b44263a89d8bf1a78bfa632daaae3cb4f1da2..refs/heads/modified-date:/ajaxIsAvailable.php?ds=sidebyside diff --git a/ajaxIsAvailable.php b/ajaxIsAvailable.php index 80883c6..d1a64a3 100644 --- a/ajaxIsAvailable.php +++ b/ajaxIsAvailable.php @@ -1,7 +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']));