Index: branches/wmf/1.17wmf1/extensions/UserDailyContribs/api/ApiUserDailyContribs.php |
— | — | @@ -21,9 +21,9 @@ |
22 | 22 | $result->addValue( $this->getModuleName() , |
23 | 23 | 'id', $user->getId() ); |
24 | 24 | $result->addValue( $this->getModuleName() , |
25 | | - 'registration', $user->getRegistration() ); |
| 25 | + 'registration', ($user->getRegistration() == NULL)?0:$user->getRegistration() ); |
26 | 26 | $result->addValue( $this->getModuleName() , |
27 | | - 'timeFrameEdits', getUserEditCountSince( $now - ($days * 60 *60 *24) )); |
| 27 | + 'timeFrameEdits', getUserEditCountSince( $now - ($days * 60 *60 *24) ), $user ); |
28 | 28 | } |
29 | 29 | |
30 | 30 | public function getAllowedParams() { |