Skip to content

Commit

Permalink
Added a test to prevent redefinition of the printValue function
Browse files Browse the repository at this point in the history
Set version to 1.3.7
fixes #15
  • Loading branch information
tomolimo committed Aug 25, 2020
1 parent eb90cb0 commit 798f53a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion impacts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<compatibility>9.3</compatibility>
</version>
<version>
<num>1.3.6</num>
<num>1.3.7</num>
<compatibility>9.3</compatibility>
<compatibility>9.4</compatibility>
</version>
Expand Down
8 changes: 5 additions & 3 deletions inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtem
static function getAssetList($completelist = false) {
global $CFG_GLPI;

function printValue($value, $key, $userData) {
if (strcmp($value, '*')) {
$userData[] = $value;
if (!function_exists('printValue')) {
function printValue($value, $key, $userData) {
if (strcmp($value, '*')) {
$userData[] = $value;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// ----------------------------------------------------------------------


define('IMPACTS_VERSION', '1.3.6');
define('IMPACTS_VERSION', '1.3.7');

// Minimal GLPI version, inclusive
define("IMPACTS_MIN_GLPI", "9.3");
Expand Down

0 comments on commit 798f53a

Please sign in to comment.