Skip to content

Commit 36e8a40

Browse files
committed
style: depreciated variable expression
1 parent 1af7872 commit 36e8a40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function plugin_formcreator_addDefaultWhere($itemtype) {
197197
$issueSearchOptions = Search::getOptions($itemtype);
198198
$complexJoinId = Search::computeComplexJoinID($issueSearchOptions[9]['joinparams']);
199199
$colname = $issueSearchOptions[9]['linkfield'];
200-
$condition .= "`glpi_users_${colname}_$complexJoinId`.`id` = '$currentUser'";
200+
$condition .= "`glpi_users_{$colname}_$complexJoinId`.`id` = '$currentUser'";
201201

202202
// condition where current user is a member of a validator group of the issue
203203
$groupList = [];
@@ -209,7 +209,7 @@ function plugin_formcreator_addDefaultWhere($itemtype) {
209209
// Search option ID 16 is either from Formcreator, either from AdvForms
210210
$complexJoinId = Search::computeComplexJoinID($issueSearchOptions[16]['joinparams']);
211211
$colname = $issueSearchOptions[16]['linkfield'];
212-
$condition .= " OR `glpi_groups_${colname}_$complexJoinId`.`id` IN ('$groupList')";
212+
$condition .= " OR `glpi_groups_{$colname}_$complexJoinId`.`id` IN ('$groupList')";
213213
}
214214

215215
// condition where current user is a validator of a issue of type ticket

0 commit comments

Comments
 (0)