Index: trunk/phase3/includes/api/ApiEmailUser.php |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | if ( $targetUser instanceof User ) |
59 | 59 | $result = array( 'result' => 'Enabled' ); |
60 | 60 | else |
61 | | - $result = array( 'result' => 'Disabled' ); |
| 61 | + $result = array( 'result' => 'Disabled', 'error' => $targetUser ); |
62 | 62 | |
63 | 63 | $this->getResult()->addValue( null, $this->getModuleName(), $result ); |
64 | 64 | return; |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | 'text' => 'Mail body', |
112 | 112 | 'token' => 'A token previously acquired via prop=info', |
113 | 113 | 'ccme' => 'Send a copy of this mail to me', |
114 | | - 'check' => 'Only check whether the user has email enabled', |
| 114 | + 'check' => 'Only check whether email can be sent to the target user', |
115 | 115 | ); |
116 | 116 | } |
117 | 117 | |