protected function _getSelectedCategory(&$data, $p_category_childID) { $v_categoryID = (int) $p_category_childID; if ($v_categoryID != 0) { // Определяем Родителя и получаем выборку "id parent_id name" $v_model = new SocialModel(); $v_row = $v_model->loadCategoryByChildID($v_categoryID); if (count($v_row) > 0) { $data['category_row'] = $v_row; } } }