Skip to content
Snippets Groups Projects
Commit 8cabfeb5 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

Hack: Make this plugin PG compliant.

parent 0fbcdde9
Branches hsh_3.10
No related tags found
No related merge requests found
......@@ -508,7 +508,7 @@ function pdfannotator_get_datetime_of_last_modification($annotatorid) {
$timemodified = $timemodified->timemodified;
// 2. When was the last time an annotation or a comment was added in the specified annotator?
$sql = "SELECT max(a.timecreated) as 'last_annotation', max(c.timemodified) as 'last_comment' "
$sql = "SELECT max(a.timecreated) as ".'"last_annotation"'." , max(c.timemodified) as ".'"last_comment"'." "
. "FROM {pdfannotator_annotations} a LEFT OUTER JOIN {pdfannotator_comments} c ON a.id = c.annotationid "
. "WHERE a.pdfannotatorid = ?";
$newposts = $DB->get_records_sql($sql, array($annotatorid));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment