From 8d588e2d9a7fade3a64b9ab73f835b2d1a717674 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 21 Apr 2011 09:25:37 +0400 Subject: [PATCH] block pref-instances tab if CURL is not available --- modules/pref-instances.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/pref-instances.php b/modules/pref-instances.php index 5735df59c..e365457a0 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 "
";