Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 7064ebd

Browse files
committed
Make sure to not return an empty value.
1 parent b24554f commit 7064ebd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/core/classes/class.ConfService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,6 +1447,7 @@ public static function getUserPersonalParameter($parameterName, $userIdOrObject,
14471447
if(is_a($userIdOrObject, "AbstractAjxpUser")){
14481448
$value = $userIdOrObject->personalRole->filterParameterValue($pluginId, $parameterName, AJXP_REPO_SCOPE_ALL, $defaultValue);
14491449
self::$usersParametersCache[$cacheId][$userIdOrObject->getId()] = $value;
1450+
if(empty($value) && !empty($defaultValue)) $value = $defaultValue;
14501451
return $value;
14511452
}
14521453
// Already in memory cache

0 commit comments

Comments
 (0)