AntonLV 9 лет назад
Родитель
Сommit
e0967480f0
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      inc/classes/BxDolCmts.php

+ 3 - 0
inc/classes/BxDolCmts.php

@@ -1039,6 +1039,9 @@ class BxDolCmts extends BxDolFactory implements iBxDolReplaceable, iBxDolContent
 
     protected function _getAuthorObject($iAuthorId = 0)
     {
+        if(empty($iAuthorId))
+            return BxDolProfileUndefined::getInstance();
+
         $oProfile = BxDolProfile::getInstance($iAuthorId);
         if (!$oProfile)
             $oProfile = BxDolProfileUndefined::getInstance();