From: Andrew Dolgov Date: Thu, 21 Apr 2011 05:25:37 +0000 (+0400) Subject: block pref-instances tab if CURL is not available X-Git-Tag: 1.5.3~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8d588e2d9a7fade3a64b9ab73f835b2d1a717674;p=tt-rss.git block pref-instances tab if CURL is not available --- diff --git a/modules/pref-instances.php b/modules/pref-instances.php index 5735df59..e365457a 100644 --- a/modules/pref-instances.php +++ b/modules/pref-instances.php @@ -113,6 +113,12 @@ return; } + if (!function_exists('curl_init')) { + print "
"; + print_error("This functionality requires CURL functions. Please enable CURL in your PHP configuration and reload this page."); + print "
"; + } + print "
"; print "
";