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(); $user->Save();
$recordToDeleteReferenceList = $parameters["parameters"]["records"]["deleted"]; if (isset( $parameters["parameters"]["records"]["deleted"] ) ) {
$recordToDeleteReferenceList = $parameters["parameters"]["records"]["deleted"];
} else {
$recordToDeleteReferenceList = NULL;
}
$recordList = array(); $recordList = array();
$c = count($recordToDeleteReferenceList); $c = count($recordToDeleteReferenceList);
for ($i=0; $i<$c; $i++) { for ($i=0; $i<$c; $i++) {