]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewcontacts.php
Merge pull request #5756 from annando/more-notices
[friendica.git] / mod / viewcontacts.php
index 9219f49d9bfaa18fe5312b0b0c2c90bc43907e58..9446470e1b03df21f2e9eeb649e4235504d21337 100644 (file)
@@ -17,7 +17,7 @@ use Friendica\Core\System;
 function viewcontacts_init(App $a)
 {
        if (Config::get('system', 'block_public') && !local_user() && !remote_user()) {
-               return;
+               System::httpExit(403, ["title" => L10n::t('Access denied.')]);
        }
 
        if ($a->argc < 2) {
@@ -32,7 +32,7 @@ function viewcontacts_init(App $a)
        );
 
        if (!DBA::isResult($r)) {
-               return;
+               System::httpExit(404, ["title" => L10n::t('Page not found.')]);
        }
 
        $a->data['user'] = $r[0];