Skip to content

Commit

Permalink
Update DBFocusPoint.php
Browse files Browse the repository at this point in the history
  • Loading branch information
micschk authored and jonom committed Nov 3, 2021
1 parent 560254c commit b28e229
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["Width"]);
return intval(is_array($this->record) ? $this->record["Width"] : $this->record->getWidth());
}

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

0 comments on commit b28e229

Please sign in to comment.