1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-12-21 14:57:50 +01:00

Check for NULL in value

This commit is contained in:
Graham Eades 2017-05-27 14:36:17 +01:00
parent 3df61ed87a
commit a2a216f9c9

View File

@ -543,7 +543,11 @@ error_log("message");
$user->Save();
$recordToDeleteReferenceList = $parameters["parameters"]["records"]["deleted"];
if (isset( $parameters["parameters"]["records"]["deleted"] ) ) {
$recordToDeleteReferenceList = $parameters["parameters"]["records"]["deleted"];
} else {
$recordToDeleteReferenceList = NULL;
}
$recordList = array();
$c = count($recordToDeleteReferenceList);
for ($i=0; $i<$c; $i++) {