Proyectos de Subversion Moodle

Rev

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

Rev 1072 Rev 1073
Línea 235... Línea 235...
235
                }
235
                }
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 asc limit {$perpage} ";
241
            $params_a = ['courseid' => $course->id, 'userid' => $userid, 'perpage' => $perpage];
241
            $params_a = ['courseid' => $course->id, 'userid' => $userid, 'perpage' => $perpage];
242
            $timecreated = $DB->get_field_sql($sql,  $params_a);
242
            $timecreated = $DB->get_field_sql($sql,  $params_a);
Línea 243... Línea 243...
243
            if ($timecreated) {
243
            if ($timecreated) {