]> git.mxchange.org Git - friendica.git/commitdiff
api_friendhips_destroy function header
authorJonny Tischbein <jonny_tischbein@systemli.org>
Fri, 14 Sep 2018 08:06:26 +0000 (10:06 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Fri, 14 Sep 2018 08:06:26 +0000 (10:06 +0200)
include/api.php

index faa465b18b0a1742979b6f3b8108166018072f64..db42d63c5bf84db04169d81fc40a8a0a8a861c18 100644 (file)
@@ -3679,7 +3679,7 @@ function api_friendships_destroy($type)
        }
        else {
                logger("No owner found", LOGGER_DEBUG);
-               throw new Exception("Error Processing Request");
+               throw new NoFoundException("Error Processing Request");
        }
 
        // Sharing-only contacts get deleted as there no relationship any more