LSformElement::image: fix bug deleting current image

This commit is contained in:
Benjamin Renard 2021-03-23 14:23:33 +01:00
parent 0e2911dfe5
commit 3ddc51004f

View file

@ -116,7 +116,7 @@ class LSformElement_image extends LSformElement {
} }
else { else {
if (isset($_POST[$this -> name.'_delete'])) { if (isset($_POST[$this -> name.'_delete'])) {
$return[$this -> name][0]=''; $return[$this -> name] = array();
} }
} }
return true; return true;