Return null if records cannot be found
This commit is contained in:
parent
bf393a56f1
commit
e6323b1a54
@ -791,7 +791,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
|
|||||||
*/
|
*/
|
||||||
public function getDedimaniaRecords() {
|
public function getDedimaniaRecords() {
|
||||||
if (!$this->dedimaniaData->records) {
|
if (!$this->dedimaniaData->records) {
|
||||||
return new RecordData(null);
|
return null;
|
||||||
}
|
}
|
||||||
$records = $this->dedimaniaData->records;
|
$records = $this->dedimaniaData->records;
|
||||||
return $records;
|
return $records;
|
||||||
|
Loading…
Reference in New Issue
Block a user