diff --git a/core/config.class.inc.php b/core/config.class.inc.php index 7faec4710..f454c8caf 100644 --- a/core/config.class.inc.php +++ b/core/config.class.inc.php @@ -1412,6 +1412,19 @@ class Config return $this->m_aSettings[$sPropCode]['value']; } + /** + * Return true is the $sPropCode parameter has been customized, false if it is the default value. + * + * @param string $sPropCode + * + * @return bool + * @since 3.0.0 + */ + public function IsCustomValue(string $sPropCode): bool + { + return $this->m_aSettings[$sPropCode]['value'] !== $this->m_aSettings[$sPropCode]['default']; + } + /** * Event log options (see LOG_... definition) */