Proyectos de Subversion Moodle

Rev

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

Rev 1070 Rev 1071
Línea 234... Línea 234...
234
                    $image = $url_noimage;
234
                    $image = $url_noimage;
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 DESC LIMIT :perpage";
239
            $sql = "select timecreated  from {logstore_standard_log} where courseid  = :courseid and userid  = :userid " .
240
            $params = ['courseid' => $course->id, 'userid' => $userid, 'perpage' => $perpage];
240
                "order by timecreated desc limit {$perpage} ";
241
            $timecreated = $DB->get_field_sql($sql, $params);
241
            $timecreated = $DB->get_field_sql($sql,  array('courseid' => $course->id, 'userid' => $userid));
Línea 242... Línea 242...
242
            if ($timecreated) {
242
            if ($timecreated) {
243
 
243