Skip to content

Commit

Permalink
Fix #98: access $this->record as array
Browse files Browse the repository at this point in the history
Fixes #98
  • Loading branch information
micschk authored and jonom committed Nov 3, 2021
1 parent 88d8b2d commit 560254c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FieldType/DBFocusPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function getWidth(): int
return intval($width);
}
if ($this->record) {
return intval($this->record->getWidth());
return intval($this->record["Width"]);
}

return 0;
Expand All @@ -95,7 +95,7 @@ public function getHeight(): int
return intval($height);
}
if ($this->record) {
return intval($this->record->getHeight());
return intval($this->record["Height"]);
}
return 0;
}
Expand Down

0 comments on commit 560254c

Please sign in to comment.