Index: trunk/extensions/UserDailyContribs/api/ApiUserDailyContribs.php |
— | — | @@ -21,7 +21,7 @@ |
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 | 27 | 'timeFrameEdits', getUserEditCountSince( $now - ($days * 60 *60 *24) ), $user ); |
28 | 28 | } |