fix: php notice

Fixes:
Notice: Undefined variable: message in /home/rssbridge/public/lib/contents.php on line 39
This commit is contained in:
Dag 2022-03-24 02:01:31 +01:00 committed by Eugene Molotov
parent f34e09e93b
commit b6d1c7a58f

View file

@ -36,12 +36,10 @@ class GetContentsException extends \Exception {
**/
class CloudflareChallengeException extends \Exception {
public function __construct($code = 0, Throwable $previous = null) {
if (!$message) {
$message = <<<EOD
$message = <<<EOD
The server responded with a Cloudflare challenge, which is not supported by RSS-Bridge!
If this error persists longer than a week, please consider opening an issue on GitHub!
EOD;
}
parent::__construct($message, $code, $previous);
}