summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-03-09 19:33:18 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-03-09 19:33:18 +0100
commitda12a76063ad5cb4aea09e68d8f24b4cf0ce94d4 (patch)
tree3793e6154e2b047c424d1bd485a62efee04dd813
parent91275a655cefd61f21a09cf50412cad752a9368c (diff)
downloadrpg-da12a76063ad5cb4aea09e68d8f24b4cf0ce94d4.tar.gz
rpg-da12a76063ad5cb4aea09e68d8f24b4cf0ce94d4.tar.bz2
spell check fix for newer aspell versions
implemented change as suggested by Pter Szldovics in the Wiki darcs-hash:20060309183318-7ad00-d73d6ea2fa7d4e50c7e166db1437d5f517b7ca5d.gz
-rw-r--r--inc/aspell.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/aspell.php b/inc/aspell.php
index fe1ad9dc6..0cf519b43 100644
--- a/inc/aspell.php
+++ b/inc/aspell.php
@@ -219,9 +219,10 @@ class Aspell{
fclose($pipes[2]);
// close process
- if(proc_close($process) != 0){
+ $rc = proc_close($process);
+ if ($err){
//something went wrong
- $err = "Aspell returned an error: $err";
+ $err = "Aspell returned an error(".ASPELL_BIN." exitcode: $rc ):\n".$err;
return false;
}
return true;