Commit 9e35221b authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent crash when viewing artefact feedback on MySQL.

As reported by Georgi Yadkov -
http://mahara.org/interaction/forum/topic.php?id=1250#post6144

Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 90b115f0
......@@ -1073,7 +1073,7 @@ abstract class ArtefactType {
id, author, authorname, ctime, message, public
FROM {artefact_feedback}
WHERE view = ' . $viewid . ' AND artefact = ' . $artefactid
. (!$canedit ? ' AND (f.public = 1 OR f.author = ' . $userid . ')' : '') . '
. (!$canedit ? ' AND (public = 1 OR author = ' . $userid . ')' : '') . '
ORDER BY id', '', $offset, $limit);
if ($feedback) {
require_once(get_config('libroot') . 'view.php');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment