Skip to content

Commit

Permalink
correct parameter hide if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
gonetil committed Sep 20, 2019
1 parent 2392318 commit 27a6a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BadgesPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function addBadges($hookName, $params) {
$smarty->assign("showDimensions","true");
if ($badgesShowAltmetric == "on") {
$smarty->assign("showAltmetric","true");
$smarty->assign("badgesAltmetricHideWhenEmpty", ($badgesAltmetricHideWhenEmpty == "on")? "true" : "false");
$smarty->assign("badgesAltmetricHideWhenEmpty", ( ($badgesAltmetricHideWhenEmpty == "on")? "true" : "false") );
}
if ($badgesShowPlumx == "on")
$smarty->assign("showPlumx","true");
Expand Down
2 changes: 1 addition & 1 deletion BadgesSettingsForm.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function execute() {
$plugin->updateSetting($contextId, 'badgesShowDimensions', $this->getData('badgesShowDimensions'), 'integer');
$plugin->updateSetting($contextId, 'badgesShowAltmetric', $this->getData('badgesShowAltmetric'), 'integer');
$plugin->updateSetting($contextId, 'badgesShowPlumx', $this->getData('badgesShowPlumx'), 'integer');
$plugin->updateSetting($contextId, 'badgesAltmetricHideWhenEmpty', $this->getData('badgesShowPlumx'), 'badgesAltmetricHideWhenEmpty');
$plugin->updateSetting($contextId, 'badgesAltmetricHideWhenEmpty', $this->getData('badgesAltmetricHideWhenEmpty'), 'badgesAltmetricHideWhenEmpty');

}

Expand Down

0 comments on commit 27a6a6c

Please sign in to comment.