Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 1183... Línea 1183...
1183
 
1183
 
1184
        if ($gradeitemid === 0) {
1184
        if ($gradeitemid === 0) {
1185
            $gradeitemid = null;
1185
            $gradeitemid = null;
Línea -... Línea 1186...
-
 
1186
        }
-
 
1187
 
-
 
1188
        if ($gradeitemid !== null && !$this->is_real_question($slot->slot)) {
-
 
1189
            throw new coding_exception('Cannot set a grade item for a question that is ungraded.');
1186
        }
1190
        }
1187
 
1191
 
1188
        if ($slot->quizgradeitemid !== null) {
1192
        if ($slot->quizgradeitemid !== null) {
1189
            // Object $slot likely comes from the database, which means int may be
1193
            // Object $slot likely comes from the database, which means int may be
1190
            // represented as a string, which breaks the next test, so fix up.
1194
            // represented as a string, which breaks the next test, so fix up.