diff options
Diffstat (limited to 'ui/include/classes/helpers/CSettingsHelper.php')
-rw-r--r-- | ui/include/classes/helpers/CSettingsHelper.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/include/classes/helpers/CSettingsHelper.php b/ui/include/classes/helpers/CSettingsHelper.php index 4cf2f4abe6a..d61e8593cc1 100644 --- a/ui/include/classes/helpers/CSettingsHelper.php +++ b/ui/include/classes/helpers/CSettingsHelper.php @@ -128,4 +128,17 @@ class CSettingsHelper extends CConfigGeneralHelper { return array_key_exists($name, self::$params) ? self::$params[$name] : null; } + + /** + * @return array + */ + public static function getDbVersionStatus(): array { + $dbversion_status = json_decode((string) self::getGlobal(self::DBVERSION_STATUS), true); + + if (!is_array($dbversion_status)) { + return []; + } + + return $dbversion_status; + } } |