Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave MacFarlane committed Oct 2, 2024
1 parent e82ca3a commit c762f9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class DicomArchiveRowProvisioner extends \LORIS\Data\Provisioners\DBRowProvision
public function getInstance($row) : \LORIS\Data\DataInstance
{
if ($row['CenterID'] !== null) {
$cid = \CenterID::singleton($row['CenterID']);
$cid = \CenterID::singleton(intval($row['CenterID']));
unset($row['CenterID']);
return new DICOMArchiveRowWithSession($row, $cid);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class ElectrophysiologyUploaderProvisioner
*/
public function getInstance($row): DataInstance
{
$cid = \CenterID::singleton($row['RegistrationCenterID']);
$pid = \ProjectID::singleton($row['RegistrationProjectID']);
$cid = \CenterID::singleton(intval($row['RegistrationCenterID']));
$pid = \ProjectID::singleton(intval($row['RegistrationProjectID']));
unset($row['RegistrationCenterID']);
unset($row['RegistrationProjectID']);
return new ElectrophysiologyUploaderRow($row, $cid, $pid);
Expand Down

0 comments on commit c762f9a

Please sign in to comment.