Skip to content

Commit b28e229

Browse files
micschkjonom
authored andcommitted
Update DBFocusPoint.php
1 parent 560254c commit b28e229

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FieldType/DBFocusPoint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function getWidth(): int
7777
return intval($width);
7878
}
7979
if ($this->record) {
80-
return intval($this->record["Width"]);
80+
return intval(is_array($this->record) ? $this->record["Width"] : $this->record->getWidth());
8181
}
8282

8383
return 0;
@@ -95,7 +95,7 @@ public function getHeight(): int
9595
return intval($height);
9696
}
9797
if ($this->record) {
98-
return intval($this->record["Height"]);
98+
return intval(is_array($this->record) ? $this->record["Height"] : $this->record->getHeight());
9999
}
100100
return 0;
101101
}

0 commit comments

Comments
 (0)