Skip to content

Commit f4da03e

Browse files
author
Marius Burkard
committed
Merge branch 'stable-3.1'
2 parents ce8c32a + a9ce366 commit f4da03e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/remote.d/client.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function client_template_additional_delete($session_id, $client_id, $assi
331331
return false;
332332
}
333333

334-
if(@is_numeric($client_id) && @is_numeric($template_id)) {
334+
if(@is_numeric($client_id) && @is_numeric($assigned_template_id)) {
335335
// check if client exists
336336
$check = $app->db->queryOneRecord('SELECT `client_id` FROM `client` WHERE `client_id` = ?', $client_id);
337337
if(!$check) {
@@ -349,7 +349,7 @@ public function client_template_additional_delete($session_id, $client_id, $assi
349349
$this->_set_client_formdata($client_id);
350350

351351
$sql = "DELETE FROM `client_template_assigned` WHERE `assigned_template_id` = ? AND `client_id` = ?";
352-
$app->db->query($sql, $template_id, $client_id);
352+
$app->db->query($sql, $assigned_template_id, $client_id);
353353
$affected_rows = $app->db->affectedRows();
354354

355355
$app->plugin->raiseEvent('client:client:on_after_update', $this);

0 commit comments

Comments
 (0)