LSformElement::image: fix getApiValue() method on multiple values

This commit is contained in:
Benjamin Renard 2021-03-23 12:38:36 +01:00
parent f960b2d394
commit 0e2911dfe5

View file

@ -176,7 +176,7 @@ class LSformElement_image extends LSformElement {
if ($this -> isMultiple()) {
$values = array();
for ($i=0; $i < count($this -> values); $i++)
$values[] = base64_encode($this -> values[0]);
$values[] = base64_encode($this -> values[$i]);
return $values;
}
if (!$this -> values)