From 7fface125e7db1e7ab47bdfbda5306fa16ea2486 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 25 Apr 2014 09:55:00 +0200 Subject: Fix error when spell-checking an empty text (#1489831) --- program/steps/utils/spell.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'program/steps/utils/spell.inc') diff --git a/program/steps/utils/spell.inc b/program/steps/utils/spell.inc index c8807e32f..696fa6005 100644 --- a/program/steps/utils/spell.inc +++ b/program/steps/utils/spell.inc @@ -37,6 +37,9 @@ if ($learn_word) { $spellchecker->add_word($data); $result = ''; } +else if (empty($data)) { + $result = ''; +} else { $spellchecker->check($data); $result = $spellchecker->get_xml(); -- cgit v1.2.3