Fix warning "Undefined index: ods_recognize_percentages" on ImportOds

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

View File

@ -246,7 +246,8 @@ class ImportOds extends ImportPlugin
*/
protected function getValue($cell_attrs, $text)
{
if ($_REQUEST['ods_recognize_percentages']
if (isset($_REQUEST['ods_recognize_percentages'])
&& $_REQUEST['ods_recognize_percentages']
&& ! strcmp(
'percentage',
(string) $cell_attrs['value-type']