Fixed error

This commit is contained in:
Arturo Gonzalez 2017-07-18 12:26:29 +02:00
parent e9e10d3a79
commit 329050b02b
1 changed files with 1 additions and 1 deletions

View File

@ -580,7 +580,7 @@ function readFields() {
}
values['width'] = $("input[name=width]").val();
values['width_data_image'] = $("#data_image_width").val();
if(values['width_data_image'] != 0){
if(values['width_data_image'] != 0 && values['width_data_image'] != undefined){
values['width'] = values['width_data_image'];
}
values['height'] = $("input[name=height]").val();