Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 363... Línea 363...
363
                list($subfraction, $newstate) = $subq->grade_response($subresp);
363
                list($subfraction, $newstate) = $subq->grade_response($subresp);
364
            }
364
            }
Línea 365... Línea 365...
365
 
365
 
366
            $fractionsum += $subq->defaultmark * max(0, $subfraction - $lastchange * $this->penalty);
366
            $fractionsum += $subq->defaultmark * max(0, $subfraction - $lastchange * $this->penalty);
-
 
367
        }
-
 
368
        if (empty($fractionsum)) {
-
 
369
            return null;
Línea 367... Línea 370...
367
        }
370
        }
368
 
371
 
Línea 369... Línea 372...
369
        return $fractionsum / $fractionmax;
372
        return $fractionsum / $fractionmax;