Przeglądaj źródła

#1636 Anonymous posting: better way to display to admins and owners that post is posted as anonymous

Alex Trofimov 8 lat temu
rodzic
commit
b0c7b5bde5

+ 1 - 5
modules/base/general/classes/BxBaseModGeneralGridAdministration.php

@@ -144,11 +144,7 @@ class BxBaseModGeneralGridAdministration extends BxTemplGrid
     
     protected function _getProfileObject($iId)
     {
-        $oProfile = BxDolProfile::getInstance($iId);
-        if (!$oProfile) 
-            $oProfile = BxDolProfileUndefined::getInstance();
-
-        return $oProfile;
+        return BxDolProfile::getInstanceMagic($iId);
     }
 
 	protected function _getManageAccountUrl($sFilter = '')