X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FHTTPException.php;h=89c447b71470ecd302b86ae8f2f105c42c4969b2;hb=8eba329111e832d7efdacf4f6a6fa85b0f7abbf3;hp=7602290c2b873c3a7e8eddea441260e8b7feed4c;hpb=365850f26a1cbbcc9e051a1e24fec2b35613b48c;p=friendica.git diff --git a/src/Network/HTTPException.php b/src/Network/HTTPException.php index 7602290c2b..89c447b714 100644 --- a/src/Network/HTTPException.php +++ b/src/Network/HTTPException.php @@ -1,27 +1,27 @@ -httpdesc == '') { - $classname = str_replace('Exception', '', str_replace('Friendica\Network\HTTPException\\', '', get_class($this))); - $this->httpdesc = preg_replace("|([a-z])([A-Z])|",'$1 $2', $classname); - } - parent::__construct($message, $code, $previous); - } -} +code, $previous); + + if (empty($this->httpdesc)) { + $classname = str_replace('Exception', '', str_replace('Friendica\Network\HTTPException\\', '', get_class($this))); + $this->httpdesc = preg_replace("|([a-z])([A-Z])|",'$1 $2', $classname); + } + } +}