[TASK] Use instanceof comparison instead of string comparison
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Classes / ViewHelpers / SpriteIconForRecordViewHelper.php
index 0b067fa..05f0443 100755 (executable)
@@ -53,7 +53,7 @@ class SpriteIconForRecordViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Be\Abst
                if (method_exists($object, 'getIsDisabled')) {
                        $row['disable'] = $object->getIsDisabled();
                }
-               if ($table === 'be_users' && get_class($object) === 'TYPO3\\CMS\\Beuser\\Domain\\Model\\BackendUser') {
+               if ($table === 'be_users' && $object instanceof \TYPO3\CMS\Beuser\Domain\Model\BackendUser) {
                        $row['admin'] = $object->getIsAdministrator();
                }
                if (method_exists($object, 'getStartDateAndTime')) {