Proyectos de Subversion Moodle

Rev

Rev 1071 | Rev 1073 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1071 Rev 1072
Línea 236... Línea 236...
236
            }
236
            }
Línea 237... Línea 237...
237
 
237
 
238
            $lastaccess = null;
238
            $lastaccess = null;
239
            $sql = "select timecreated  from {logstore_standard_log} where courseid  = :courseid and userid  = :userid " .
239
            $sql = "select timecreated  from {logstore_standard_log} where courseid  = :courseid and userid  = :userid " .
-
 
240
                "order by timecreated desc limit {$perpage} ";
240
                "order by timecreated desc limit {$perpage} ";
241
            $params_a = ['courseid' => $course->id, 'userid' => $userid, 'perpage' => $perpage];
241
            $timecreated = $DB->get_field_sql($sql,  array('courseid' => $course->id, 'userid' => $userid));
242
            $timecreated = $DB->get_field_sql($sql,  $params_a);
Línea 242... Línea 243...
242
            if ($timecreated) {
243
            if ($timecreated) {
243
 
244