diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-03-07 18:42:19 -0500 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-03-07 18:42:19 -0500 |
| commit | fba28a55051f648e29fa7782c03bbe8c70558f4b (patch) | |
| tree | 965c4770899ecca646ccbd94009d6940e1857571 /dash/dash_functions.php | |
| parent | 7c22c8b54fa09348ce3a8077dd49384c917d6db0 (diff) | |
| download | bulletin-fba28a55051f648e29fa7782c03bbe8c70558f4b.tar.gz | |
Bug fixes
Diffstat (limited to 'dash/dash_functions.php')
| -rw-r--r-- | dash/dash_functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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( |
