Return null if records cannot be found

This commit is contained in:
Max Klaversma 2014-04-17 21:10:00 +02:00 committed by Steffen Schröder
parent bf393a56f1
commit e6323b1a54

View File

@ -791,7 +791,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
*/
public function getDedimaniaRecords() {
if (!$this->dedimaniaData->records) {
return new RecordData(null);
return null;
}
$records = $this->dedimaniaData->records;
return $records;