From fa3cd0357fb00da92f6fd15033aa492db02a105a Mon Sep 17 00:00:00 2001 From: QuickCRM Date: Fri, 27 Oct 2017 11:13:05 +0200 Subject: [PATCH] Fix for PHP 7.1 --- modules/Administration/genJSfromSugar.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/Administration/genJSfromSugar.php b/modules/Administration/genJSfromSugar.php index 63486ad..b12e2f4 100644 --- a/modules/Administration/genJSfromSugar.php +++ b/modules/Administration/genJSfromSugar.php @@ -18,7 +18,8 @@ class mobile_jsLanguage { /** * Creates javascript versions of language files */ - function mobile_jsLanguage() { + public function __construct() + { } function getListOfLists($lst_mod) { @@ -254,7 +255,7 @@ function createMobileFiles(){ function CheckAccess(){ global $sugar_config; - if (is_windows()){ + if (is_windows() || !function_exists('curl_init')){ return true; } else {