1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

fix category

This commit is contained in:
Mzhelskiy Maxim 2014-09-25 17:53:56 +07:00
parent f825f25377
commit 018e2a2d36

View file

@ -36,8 +36,7 @@ class BlockCategoryUpdate extends Block {
if ($oTarget) {
$aBehaviors=$oTarget->GetBehaviors();
foreach($aBehaviors as $oBehavior) {
$sClassRoot=$this->Plugin_GetRootDelegater('entity',get_class($oBehavior));
if ($sClassRoot=='ModuleCategory_BehaviorEntity') {
if ($oBehavior instanceof ModuleCategory_BehaviorEntity) {
/**
* Нужное нам поведение - получаем список текущих категорий
*/