Skip to content

Commit

Permalink
Fix bug in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Feb 20, 2019
1 parent 4636b87 commit de17449
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
foreach ($json as $item) {
$item->credentials = simpleEncrypt($item->credentials);
$field = 'credentials';
if ($item->type = 'ldap_servers') {
if ($item->type == 'ldap_servers') {
$field = 'dn_password';
}
$sql = "UPDATE `" . $item->type . "` SET `" . $field . "` = ?, `edited_by` = 'system', `edited_date` = NOW() WHERE `id` = ?";
Expand Down

0 comments on commit de17449

Please sign in to comment.