Skip to content
Snippets Groups Projects
Commit 14b401b5 authored by Mike Henry's avatar Mike Henry
Browse files

Issue #80 add is_int($param) to $commentid loop

parent 41e83152
No related branches found
No related tags found
No related merge requests found
......@@ -425,7 +425,7 @@ function pdfannotator_pluginfile($course, $cm, $context, $filearea, $args, $forc
if ($filearea === 'post') {
$commentid = 0;
foreach ($args as $param) {
if ($DB->record_exists('pdfannotator_comments', ['id' => $param])) {
if (is_int($param) && $DB->record_exists('pdfannotator_comments', ['id' => $param])) {
$commentid = $param;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment