get_massiv( 'crm_comments', $a ); $num = count( $comments ); for ( $i=0; $i < $num; $i++ ){ unset( $a ); $a['id']=$comments[$i]['user_id']; $json=$this->get_val('users', $a, 'json'); unset( $a ); $a = $this -> from_j( $json ); $comments[$i]['fio'] = $a['kontaktnoe_lico']; } return $comments; } } ?>