diff --git a/interface/web/client/form/client.tform.php b/interface/web/client/form/client.tform.php index 53d5f895986bfd2ecc75f72968b867bde936ac93..85b867104f2efd37604f7d5f4750d3da84d48df4 100644 --- a/interface/web/client/form/client.tform.php +++ b/interface/web/client/form/client.tform.php @@ -665,7 +665,7 @@ $form["tabs"]['limits'] = array ( 'default' => '', 'separator' => ',', 'valuelimit' => 'client:web_php_options', - 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') + 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM') ), 'limit_web_aliasdomain' => array ( 'datatype' => 'INTEGER', diff --git a/interface/web/client/form/client_template.tform.php b/interface/web/client/form/client_template.tform.php index df15e690d8ab65349a994296874d11b0ee9c6627..0b5c1be95222379ad89850c291d1b13a38750cd5 100644 --- a/interface/web/client/form/client_template.tform.php +++ b/interface/web/client/form/client_template.tform.php @@ -331,7 +331,7 @@ $form["tabs"]['limits'] = array ( 'default' => '', 'separator' => ',', 'valuelimit' => 'client:web_php_options', - 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') + 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM') ), 'limit_web_aliasdomain' => array ( 'datatype' => 'INTEGER', diff --git a/interface/web/client/form/reseller.tform.php b/interface/web/client/form/reseller.tform.php index 77e2f54f79348a83a7d05d7554e3fdd465fde104..c60d136d979f95acfa027463e810debed98b031c 100644 --- a/interface/web/client/form/reseller.tform.php +++ b/interface/web/client/form/reseller.tform.php @@ -598,7 +598,7 @@ $form["tabs"]['limits'] = array ( ), 'default' => '', 'separator' => ',', - 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') + 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM') ), 'limit_web_aliasdomain' => array ( 'datatype' => 'INTEGER', diff --git a/interface/web/client/tools.inc.php b/interface/web/client/tools.inc.php index abc85ae9bdd0015f1f80af225f7ee15451a88135..ac9bde1e46521177dd9d75a70b8b0deb8106fdbb 100644 --- a/interface/web/client/tools.inc.php +++ b/interface/web/client/tools.inc.php @@ -128,7 +128,7 @@ function applyClientTemplates($clientId){ $update .= '`' . $k . "`='" . $v . "'"; } } - $sql = 'UPDATE client SET ' . $update . " WHERE client_id = " . intval($clientId); + if($update != '') $sql = 'UPDATE client SET ' . $update . " WHERE client_id = " . intval($clientId); $app->db->query($sql); } ?>