From fba28a55051f648e29fa7782c03bbe8c70558f4b Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Tue, 7 Mar 2017 18:42:19 -0500 Subject: Bug fixes --- dash/dash_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dash/dash_functions.php') diff --git a/dash/dash_functions.php b/dash/dash_functions.php index 998455d..223f17b 100644 --- a/dash/dash_functions.php +++ b/dash/dash_functions.php @@ -65,7 +65,7 @@ function app_trigger ($responseid) { $result->free(); if (!$appinfo['notify']) return; - $result = $db->query('SELECT users.name, users.email, SUM(ratings.stars) / COUNT(ratings.stars) AS rating FROM users LEFT JOIN ratings ON ratings.rated = users.id') or dash_fatal($db->error); + $result = $db->query('SELECT users.name, users.email, SUM(ratings.stars) / COUNT(ratings.stars) AS rating FROM users LEFT JOIN ratings ON ratings.rated = users.id WHERE users.id = '.$appinfo['seeker'].' LIMIT 1') or dash_fatal($db->error); $uinfo = $result->fetch_assoc(); $result->free(); $options = array( -- cgit v1.2.3