Skip to content

Commit

Permalink
D'Oh!. Remember open the model before requesting information. Issue #679
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasdelellis committed Aug 16, 2023
1 parent 2c0260b commit 76fe598
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/BackgroundJob/Tasks/CheckRequirementsTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public function execute(FaceRecognitionContext $context) {
return false;
}

$model->open();
$maxImageArea = $model->getMaximumArea();
if ($imageArea > $maxImageArea) {
$error_message =
Expand Down

0 comments on commit 76fe598

Please sign in to comment.