Fix "Undefined array key "ods_recognize_currency" on ImportOds
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
5c19230a66
commit
a49ea14515
@ -256,7 +256,8 @@ class ImportOds extends ImportPlugin
|
|||||||
return (float) $cell_attrs['value'];
|
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'])
|
&& ! strcmp('currency', (string) $cell_attrs['value-type'])
|
||||||
) {
|
) {
|
||||||
return (float) $cell_attrs['value'];
|
return (float) $cell_attrs['value'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user