[VD:OneDrive] fix notice error in _dimensions()

This commit is contained in:
nao-pon
2020-01-01 12:13:32 +09:00
parent 9b67762efa
commit d4809c8284
+1 -1
View File
@@ -1467,7 +1467,7 @@ class elFinderVolumeOneDrive extends elFinderVolumeDriver
}
$raw = $this->_od_query($itemId, true, false, $options);
if ($raw && $img = $raw->image) {
if ($raw && property_exists($raw, 'image') && $img = $raw->image) {
if (isset($img->width) && isset($img->height)) {
$ret = array('dim' => $img->width . 'x' . $img->height);
if ($tmbSize) {