Skip to content

Commit 204b221

Browse files
committed
minor fix
1 parent 35d2f7d commit 204b221

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Embed/FastImage.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,10 @@ private function parseSizeForJPEG()
218218
break;
219219

220220
case 'readsize':
221-
$c = $this->getChars(7);
222-
223-
return array($this->readInt(substr($c, 5, 2)), $this->readInt(substr($c, 3, 2)));
221+
if (($c = $this->getChars(7))) {
222+
return array($this->readInt(substr($c, 5, 2)), $this->readInt(substr($c, 3, 2)));
223+
}
224+
return null;
224225

225226
default:
226227
$this->getChars(2);

0 commit comments

Comments
 (0)