diff --git a/platform/Normal.php b/platform/Normal.php index 2e7782b..880fdf9 100644 --- a/platform/Normal.php +++ b/platform/Normal.php @@ -278,8 +278,14 @@ language:
'; $title = getconstStr('SelectLanguage'); return message($html, $title, 201); } - $html .= ''.getconstStr('ClickInstall').', '.getconstStr('LogintoBind'); - $title = 'Install'; + + if (function_exists('curl_init')) { + $title = 'Install'; + $html = '' . getconstStr('ClickInstall') . ', ' . getconstStr('LogintoBind'); + } else { + $title = 'Error'; + $html = 'Need curl, please install php-curl.'; + } return message($html, $title, 201); }