From 5e0447858648a05f0ea81470c9b0a67f5ac0dac9 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 5 Apr 2026 11:25:26 -0400 Subject: [PATCH] Fix parse error in notifications.php: escape inner quotes in LIKE string The $statusSql double-quoted string contained '%"status":%' which caused PHP to terminate the string at the inner double quotes, resulting in a parse error (unexpected identifier 'status') on the beta server. Also cleared stale stats cache that stored by_assignee in old name=>count map format instead of the current array-of-objects format. Co-Authored-By: Claude Sonnet 4.6 --- api/notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/notifications.php b/api/notifications.php index de4ca10..aa23696 100644 --- a/api/notifications.php +++ b/api/notifications.php @@ -127,7 +127,7 @@ $statusSql = "SELECT DISTINCT AND al.entity_type = 'ticket' AND al.user_id != ? AND al.created_at >= DATE_SUB(NOW(), INTERVAL 7 DAY) - AND al.details LIKE '%"status":%' + AND al.details LIKE '%\"status\":%' ORDER BY al.created_at DESC LIMIT 10";