Completed
Pull Request — developer (#8612)
by Sławomir
96:08 queued 81:00
created
modules/Vtiger/uitypes/MultiImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 			if ((empty($item['name']) && empty($item['baseContent'])) && (empty($item['key']) || empty($item['name']) || empty($item['size']) || App\TextParser::getTextLength($item['key']) !== 50)) {
51 51
 				throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getFieldName() . '||' . \App\Json::encode($value), 406);
52 52
 			}
53
-			if ($index > (int)$fieldInfo['limit']) {
53
+			if ($index > (int) $fieldInfo['limit']) {
54 54
 				throw new \App\Exceptions\Security('ERR_TO_MANY_FILES||' . $this->getFieldModel()->getFieldName() . '||' . \App\Json::encode($value), 406);
55 55
 			}
56 56
 			$path = \App\Fields\File::getLocalPath($item['path']);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 		if (!is_array($value)) {
137 137
 			return '';
138 138
 		}
139
-		$value = array_map(function ($v) {
139
+		$value = array_map(function($v) {
140 140
 			return $v['name'];
141 141
 		}, $value);
142 142
 		$result = implode(', ', $value);
Please login to merge, or discard this patch.