]> git.mxchange.org Git - friendica.git/blobdiff - mod/hcard.php
Replace System::httpExit() by HTTPException throwing
[friendica.git] / mod / hcard.php
index e27ea29be4b0f8bc5c3e645aee2a38619a8deda9..828eeaf0910a3fdd5338d529eb49fbc6bb51283e 100644 (file)
@@ -17,8 +17,7 @@ function hcard_init(App $a)
        if ($a->argc > 1) {
                $which = $a->argv[1];
        } else {
-               notice(L10n::t('No profile') . EOL);
-               return;
+               throw new \Friendica\Network\HTTPException\NotFoundException(L10n::t('No profile'));
        }
 
        $profile = 0;