[Bio] / FigKernelPackages / FIG.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/FIG.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.190, Wed Dec 15 02:04:34 2004 UTC revision 1.191, Thu Dec 16 22:57:43 2004 UTC
# Line 3479  Line 3479 
3479          if (($relational_db_response = $rdbH->SQL("SELECT made_by,assigned_function FROM assigned_functions WHERE ( prot = \'$id\' )")) &&          if (($relational_db_response = $rdbH->SQL("SELECT made_by,assigned_function FROM assigned_functions WHERE ( prot = \'$id\' )")) &&
3480              (@$relational_db_response >= 1))              (@$relational_db_response >= 1))
3481          {          {
3482              @tmp = sort { $a->[0] cmp $b->[0] } map { [$_->[0],$_->[1]] } @$relational_db_response;              @tmp = sort { $a->[0] cmp $b->[0] } map { $_->[1] =~ s/^\s//; $_->[1] =~ s/(\t\S)?\s*$//; [$_->[0],$_->[1]] } @$relational_db_response;
3483              for ($i=0; ($i < @tmp) && ($tmp[$i]->[0] ne "master"); $i++) {}              for ($i=0; ($i < @tmp) && ($tmp[$i]->[0] ne "master"); $i++) {}
3484              if ($i < @tmp)              if ($i < @tmp)
3485              {              {
# Line 3499  Line 3499 
3499          if (($relational_db_response = $rdbH->SQL("SELECT assigned_function FROM assigned_functions WHERE ( prot = \'$id\' AND made_by = \'master\' )")) &&          if (($relational_db_response = $rdbH->SQL("SELECT assigned_function FROM assigned_functions WHERE ( prot = \'$id\' AND made_by = \'master\' )")) &&
3500              (@$relational_db_response >= 1))              (@$relational_db_response >= 1))
3501          {          {
3502                $relational_db_response->[0]->[0]  =~ s/^\s//; $relational_db_response->[0]->[0] =~ s/(\t\S)?\s*$//;
3503              return $wantarray ? (["master",$relational_db_response->[0]->[0]]) : $relational_db_response->[0]->[0];              return $wantarray ? (["master",$relational_db_response->[0]->[0]]) : $relational_db_response->[0]->[0];
3504          }          }
3505      }      }

Legend:
Removed from v.1.190  
changed lines
  Added in v.1.191

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3