Fix "Undefined array key "ods_recognize_currency" on ImportOds

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-06-27 12:51:55 +02:00
parent 5c19230a66
commit a49ea14515
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -256,7 +256,8 @@ class ImportOds extends ImportPlugin
return (float) $cell_attrs['value'];
}
if ($_REQUEST['ods_recognize_currency']
if (isset($_REQUEST['ods_recognize_currency'])
&& $_REQUEST['ods_recognize_currency']
&& ! strcmp('currency', (string) $cell_attrs['value-type'])
) {
return (float) $cell_attrs['value'];