We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 560254c commit b28e229Copy full SHA for b28e229
src/FieldType/DBFocusPoint.php
@@ -77,7 +77,7 @@ public function getWidth(): int
77
return intval($width);
78
}
79
if ($this->record) {
80
- return intval($this->record["Width"]);
+ return intval(is_array($this->record) ? $this->record["Width"] : $this->record->getWidth());
81
82
83
return 0;
@@ -95,7 +95,7 @@ public function getHeight(): int
95
return intval($height);
96
97
98
- return intval($this->record["Height"]);
+ return intval(is_array($this->record) ? $this->record["Height"] : $this->record->getHeight());
99
100
101
0 commit comments