- $spell_proc=proc_open($sqspell_command, $descriptorspec, $pipes);
- fwrite($pipes[0], $sqspell_new_text);
+ $spell_proc = @proc_open($sqspell_command, $descriptorspec, $pipes);
+ if ( ! is_resource ( $spell_proc ) ) {
+ error_box ( _("Could not run the spellchecker command (%s).",
+ htmlspecialchars($sqspell_command) ) , $color );
+ }
+ if ( ! @fwrite($pipes[0], $sqspell_new_text) ) {
+ error_box ( _("Error while writing to pipe.",
+ htmlspecialchars($floc) ) , $color );
+ }