diff --git a/administrator/components/com_content/models/fields/voteradio.php b/administrator/components/com_content/models/fields/voteradio.php index 8859bd4805f37..0916b4bcf9ef0 100644 --- a/administrator/components/com_content/models/fields/voteradio.php +++ b/administrator/components/com_content/models/fields/voteradio.php @@ -26,6 +26,21 @@ class JFormFieldVoteradio extends JFormFieldRadio */ protected $type = 'Voteradio'; + /** + * Method to get the field Label. + * + * @return array The field label objects. + * + * @throws \Exception + * + * @since __DEPLOY_VERSION__ + */ + public function getLabel() + { + // Requires vote plugin enabled + return JPluginHelper::isEnabled('content', 'vote') ? parent::getLabel() : null; + } + /** * Method to get the field options. *