extensionIsDisabled() returns true if extension isn't installed

This commit is contained in:
Uwe Steinmann 2025-09-24 14:57:16 +02:00
parent f6cded950b
commit 237aa79140

View File

@ -1781,13 +1781,13 @@ class Settings { /* {{{ */
* Check if extension is disabled
*
* @param string $extname name of extension
* @return true if extension is disabled
* @return true if extension is disabled or extension could not be found in configuration
*/
public function extensionIsDisabled($extname) { /* {{{ */
if(array_key_exists($extname, $this->_extensions))
return $this->_extensions[$extname]['__disable__'];
return false;
return true;
} /* }}} */
/**