Index: trunk/phase3/includes/api/ApiMove.php |
— | — | @@ -88,8 +88,8 @@ |
89 | 89 | // We're not gonna dieUsage() on failure, since we already changed something |
90 | 90 | else |
91 | 91 | { |
92 | | - $r['talkmove-error-code'] = ApiBase::$messageMap[current($retval)]['code']; |
93 | | - $r['talkmove-error-info'] = ApiBase::$messageMap[current($retval)]['info']; |
| 92 | + $r['talkmove-error-code'] = ApiBase::$messageMap[reset($retval)]['code']; |
| 93 | + $r['talkmove-error-info'] = ApiBase::$messageMap[reset($retval)]['info']; |
94 | 94 | } |
95 | 95 | } |
96 | 96 | |