1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-14 07:49:02 +01:00

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;
}
$result["recordsStats"] = $recordsStats;
if ( isset( $recordsStats ) ) {
$result["recordsStats"] = $recordsStats;
} else {
$result["recordsStats"] = NULL;
}
$result["statistics"] = $user->statistics;
$result["version"] = $user->version;