AntonLV %!s(int64=5) %!d(string=hai) anos
pai
achega
67172c135f
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 2 2
      inc/classes/BxDolCmts.php
  2. 1 1
      template/scripts/BxBaseCmtsMenuUnitMeta.php

+ 2 - 2
inc/classes/BxDolCmts.php

@@ -1552,10 +1552,10 @@ class BxDolCmts extends BxDolFactory implements iBxDolReplaceable, iBxDolContent
 
     protected function _getAuthorObject($iAuthorId = 0)
     {
-        return BxDolProfile::getInstanceMagic($iAuthorId);
+        return BxDolProfile::getInstanceMagic((int)$iAuthorId);
     }
 
-	protected function _getFormObject($sAction = BX_CMT_ACTION_POST)
+    protected function _getFormObject($sAction = BX_CMT_ACTION_POST)
     {
         $sDisplayName = '_sFormDisplay' . ucfirst($sAction);
 

+ 1 - 1
template/scripts/BxBaseCmtsMenuUnitMeta.php

@@ -52,7 +52,7 @@ class BxBaseCmtsMenuUnitMeta extends BxTemplMenuUnitMeta
         if(empty($aParent) || !is_array($aParent))
             return '';
 
-        $oProfile = BxDolProfile::getInstanceMagic($aParent['cmt_author_id']);
+        $oProfile = BxDolProfile::getInstanceMagic((int)$aParent['cmt_author_id']);
         $sParAuthorName = $oProfile->getDisplayName();
         $sParAuthorUnit = $oProfile->getUnit(0, array('template' => array('name' => 'unit_wo_info_links', 'size' => 'icon')));