From c56ca0d827134a1062d5a7df13fb848fd2f39335 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 25 Apr 2012 14:34:17 +0000
Subject: [PATCH] - Added PHP-FPM to client and reseller settings.

---
 interface/web/client/form/client.tform.php          | 2 +-
 interface/web/client/form/client_template.tform.php | 2 +-
 interface/web/client/form/reseller.tform.php        | 2 +-
 interface/web/client/tools.inc.php                  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/interface/web/client/form/client.tform.php b/interface/web/client/form/client.tform.php
index 53d5f89598..85b867104f 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 df15e690d8..0b5c1be952 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 77e2f54f79..c60d136d97 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 abc85ae9bd..ac9bde1e46 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);
 }
 ?>
-- 
GitLab