Skip to content

Commit

Permalink
Fix admin page when for any reason disable pdlib...
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasdelellis committed Jun 8, 2024
1 parent 58e3e0e commit 2cf2db5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Settings/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public function getForm() {
$model = $this->modelManager->getCurrentModel();
if (!is_null($model)) {
try {
$error = "";
if (!$model->meetDependencies($error))
throw new \Exception($error);
$model->open();
$maxImageRange = strval($model->getMaximumArea());
} catch (\Exception $e) {
Expand Down

0 comments on commit 2cf2db5

Please sign in to comment.