Error message

Notice: Trying to get property 'type' of non-object in league_org_value() (line 2683 of /home/lms/public_html/drupal-7.82/sites/all/modules/custom/league/league.module).