diff options
| author | 2021-03-14 16:53:34 +0100 | |
|---|---|---|
| committer | 2021-03-14 16:53:34 +0100 | |
| commit | efba11ee37fb0e9f39c4399ae615fabc44f6ed02 (patch) | |
| tree | db1c9e421bf69e6d45285d659d2de766f13999b9 | |
| parent | 2c4f169f0a22d3665caa37d64628d5b84359bb45 (diff) | |
If cURL is not installed, the script stops with a fatal error. (#3519)
* If cURL is not installed, the script stops with a fatal error.
The script stops with the following message.
Fatal error: Uncaught Error: Call to undefined function curl_version()
* Update app/install.php
Fix whitespace
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
| -rw-r--r-- | app/install.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/install.php b/app/install.php index b3e96a773..1eb952286 100644 --- a/app/install.php +++ b/app/install.php @@ -402,7 +402,11 @@ function printStep1() { <noscript><p class="alert alert-warn"><span class="alert-head"><?= _t('gen.short.attention') ?></span> <?= _t('install.javascript_is_better') ?></p></noscript> <?php - $version = curl_version(); + if (function_exists('curl_version')) { + $version = curl_version(); + } else { + $version['version'] = ''; + } printStep1Template('php', $res['php'], [PHP_VERSION, FRESHRSS_MIN_PHP_VERSION]); printStep1Template('pdo', $res['pdo']); printStep1Template('curl', $res['curl'], [$version['version']]); |
