From 26b93535fad878971110bb91dcebd65e7384a0ab Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Mon, 22 May 2017 14:13:41 +0200 Subject: [PATCH] Fix variable name; fixes #2122 --- inc/toolbox.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/toolbox.class.php b/inc/toolbox.class.php index 23860cfc344..bbe760ffe24 100644 --- a/inc/toolbox.class.php +++ b/inc/toolbox.class.php @@ -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]))."')"); } }