Skip to content

Commit

Permalink
fix LIKE
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh committed Apr 13, 2016
1 parent b7ed95c commit 054f884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ static function showSingle($itemtype, $searchOption, $massiveaction = false) {
FROM glpi_plugin_fields_fields fields
LEFT JOIN glpi_plugin_fields_containers containers
ON containers.id = fields.plugin_fields_containers_id
AND containers.itemtypes LIKE '$itemtype'
AND containers.itemtypes LIKE '%$itemtype%'
WHERE fields.name = '$cleaned_linkfield'";
$res = $DB->query($query);
if ($DB->numrows($res) == 0) {
Expand Down

0 comments on commit 054f884

Please sign in to comment.