Commit 6caa87d7 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

MySQL query fix


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent b1c8c499
......@@ -151,9 +151,9 @@ for ($i = 0; $i < $count; $i++) {
// notifications grow too fast. Unfortunately the only way to find
// notifications on this topic is to look for the url of this page.
execute_sql("
UPDATE {notification_internal_activity}
SET read = 1
WHERE read = 0 AND usr = ? AND url LIKE ? || '%' AND type = (
UPDATE {notification_internal_activity} n
SET n.read = 1
WHERE n.read = 0 AND usr = ? AND url LIKE ? || '%' AND type = (
SELECT id FROM {activity_type} WHERE name = ?
)",
array(
......
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