Skip to content

Commit

Permalink
fix: SQL error when user ID missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom1-B authored and btry committed Jul 24, 2024
1 parent feb1de0 commit 17c0358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function plugin_formcreator_addDefaultWhere($itemtype) {
$condition .= " OR `glpi_users_$complexJoinId`.`id` = '$currentUser'";

// Add users_id_recipient
$condition .= " OR `glpi_plugin_formcreator_issues`.`users_id_recipient` = $currentUser ";
$condition .= " OR `glpi_plugin_formcreator_issues`.`users_id_recipient` = '$currentUser' ";
return "($condition)";
break;

Expand Down

0 comments on commit 17c0358

Please sign in to comment.