Proyectos de Subversion Moodle

Rev

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

Rev 1067 Rev 1068
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 ORDER BY timecreated ASC LIMIT :perpage";
-
 
240
 
239
            $sql = "SELECT timecreated FROM {logstore_standard_log} WHERE courseid = :courseid AND userid = :userid ORDER BY timecreated ASC LIMIT :perpage";
-
 
240
            $params = ['courseid' => $course->id, 'userid' => $userid, 'perpage' => $pepage];
241
            $timecreated = $DB->get_field_sql($sql,  array('courseid' => $course->id, 'userid' => $userid));
241
            $timecreated = $DB->get_field_sql($sql, $params);
Línea 242... Línea 242...
242
            if ($timecreated) {
242
            if ($timecreated) {
243
 
243