Skip to content

Commit 78f8ad2

Browse files
committed
fix extrem panel - wrong thold count
1 parent c45c72a commit 78f8ad2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/data.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,10 +1415,10 @@ function trend($display=false, $update=false, $force_update=false) {
14151415
$users = db_fetch_assoc("SELECT t1.id AS id FROM user_auth AS t1 JOIN plugin_intropage_user_auth AS t2
14161416
ON t1.id=t2.user_id WHERE t1.enabled='on' AND t2.trend='on'");
14171417
foreach ($users as $user) {
1418+
if ($_SESSION['allowed_hosts'][$user['id']]) {
1419+
14181420
/*
14191421
old fast code
1420-
*/
1421-
if ($_SESSION['allowed_hosts'][$user['id']]) {
14221422
14231423
14241424
db_execute_prepared("REPLACE INTO plugin_intropage_trends
@@ -1431,7 +1431,7 @@ function trend($display=false, $update=false, $force_update=false) {
14311431
OR (thold_data.bl_alert > 0 AND thold_data.bl_fail_count >= thold_data.bl_fail_trigger)))",
14321432
array($user['id']));
14331433
1434-
/*
1434+
14351435
new code from thold plugin - it is slower but correct count
14361436
*/
14371437

0 commit comments

Comments
 (0)