Skip to content

Commit

Permalink
IOMAD: getting -1 for company id isn't empty
Browse files Browse the repository at this point in the history
  • Loading branch information
turf212 committed Jun 21, 2024
1 parent b8ee99d commit 5b0701d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/settings/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// IOMAD
require_once($CFG->dirroot . '/local/iomad/lib/company.php');
$companyid = iomad::get_my_companyid(context_system::instance(), false);
if (!empty($companyid)) {
if (!empty($companyid) && $companyid > 0) {
$postfix = "_$companyid";
} else {
$postfix = "";
Expand Down

0 comments on commit 5b0701d

Please sign in to comment.