Fixed new login with empty records

This commit is contained in:
Graham Eades 2017-05-27 14:50:05 +01:00
parent a2a216f9c9
commit 083a6a5cea

View File

@ -409,7 +409,11 @@ error_log("message");
$recordStats["updateDate"] = $record->update_date;
$recordsStats[$record->reference] = $recordStats;
}
if ( isset( $recordsStats ) ) {
$result["recordsStats"] = $recordsStats;
} else {
$result["recordsStats"] = NULL;
}
$result["statistics"] = $user->statistics;
$result["version"] = $user->version;