Subversion Repositories wimsdev

Rev

Rev 16757 | Rev 17822 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16757 Rev 17457
Line 1242... Line 1242...
1242
      int scregs=0;
1242
      int scregs=0;
1243
      if(sh!=NULL && *sh!=0)
1243
      if(sh!=NULL && *sh!=0)
1244
        scregs=getscorestatus(getvar("wims_class"),atoi(sh));
1244
        scregs=getscorestatus(getvar("wims_class"),atoi(sh));
1245
      if(sh!=NULL && *sh!=0 && ex!=NULL && *ex!=0
1245
      if(sh!=NULL && *sh!=0 && ex!=NULL && *ex!=0
1246
          && (screg==NULL || strcmp(screg,"suspend")!=0)
1246
          && (screg==NULL || strcmp(screg,"suspend")!=0)
1247
          && (scregs==1)){
1247
          && (scregs!=0)){
1248
        /* the case of a supervisor looking at the sheet is not treated */
1248
        /* the case of a supervisor looking at the sheet is not treated */
1249
        tseed=getseedscore(getvar("wims_class"), getvar("wims_user"), atoi(sh), atoi(ex));
1249
        tseed=getseedscore(getvar("wims_class"), getvar("wims_user"), atoi(sh), atoi(ex));
1250
        if( tseed!=0 ) {
1250
        if( tseed!=0 ) {
1251
          mystrncpy(buf, tseed,sizeof(buf));
1251
          mystrncpy(buf, tseed,sizeof(buf));
1252
          force_setvar("wims_seed",buf);
1252
          force_setvar("wims_seed",buf);