diff --git a/libraries/joomla/table/table.php b/libraries/joomla/table/table.php index 3944558ea40d6..601540f4999a4 100644 --- a/libraries/joomla/table/table.php +++ b/libraries/joomla/table/table.php @@ -225,16 +225,18 @@ public function getObserverOfClass($observerClass) /** * Get the columns from database table. * + * @param bool $reload flag to reload cache + * * @return mixed An array of the field names, or false if an error occurs. * * @since 11.1 * @throws UnexpectedValueException */ - public function getFields() + public function getFields($reload = false) { static $cache = null; - if ($cache === null) + if ($cache === null || $reload) { // Lookup the fields for this table only once. $name = $this->_tbl;