HOR-3861 add validation if empty

This commit is contained in:
Julio Cesar Laura Avendaño
2017-09-12 15:21:40 -04:00
parent ebb6c276df
commit 3e197aad79

View File

@@ -99,7 +99,7 @@ class PmLicenseManager
} else {
$licInfoA = [];
}
if ($licInfoA[SYS_SYS] != $resultsRegister) {
if (empty($licInfoA[SYS_SYS]) || ($licInfoA[SYS_SYS] != $resultsRegister)) {
$licInfoA[SYS_SYS] = $resultsRegister;
$oServerConf->setProperty('LICENSE_INFO', $licInfoA);
}