mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-11 11:04:36 +02:00
fix: php notice
Fixes: Notice: Undefined variable: message in /home/rssbridge/public/lib/contents.php on line 39
This commit is contained in:
@@ -36,12 +36,10 @@ class GetContentsException extends \Exception {
|
|||||||
**/
|
**/
|
||||||
class CloudflareChallengeException extends \Exception {
|
class CloudflareChallengeException extends \Exception {
|
||||||
public function __construct($code = 0, Throwable $previous = null) {
|
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!
|
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!
|
If this error persists longer than a week, please consider opening an issue on GitHub!
|
||||||
EOD;
|
EOD;
|
||||||
}
|
|
||||||
|
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, $code, $previous);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user