Skip to content

Commit

Permalink
Fix variable name; fixes glpi-project#2122
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed May 22, 2017
1 parent af6a4a9 commit 26b9353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/toolbox.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2498,7 +2498,7 @@ static function convertTagToImage($content_text, CommonDBTM $item, $doc_data=arr
preg_match_all('/'.Document::getImageTag('(([a-z0-9]+|[\.\-]?)+)').'/', $content_text,
$matches, PREG_PATTERN_ORDER);
if (isset($matches[1]) && count($matches[1])) {
$doc_data = $doc->find("`tag` IN('".implode("','", array_unique($matches[1]))."')");
$doc_data = $document->find("`tag` IN('".implode("','", array_unique($matches[1]))."')");
}
}

Expand Down

0 comments on commit 26b9353

Please sign in to comment.