aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/activity.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/activity.php')
-rw-r--r--engine/lib/activity.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/engine/lib/activity.php b/engine/lib/activity.php
index 20ca8ceec..40833c188 100644
--- a/engine/lib/activity.php
+++ b/engine/lib/activity.php
@@ -85,7 +85,21 @@
}
$f[$key] = $val;
}
- $activity_events[] = $f;
+
+ // Filter result based on parameters
+ $add = true;
+ if ($type) {
+ if (!in_array($f['type'], $type)) $add = false;
+ }
+ if (($add) && ($subtype)) {
+ if (!in_array($f['subtype'], $subtype)) $add = false;
+ }
+ if (($add) && ($event)) {
+ if (!in_array($f['event'], $event)) $add = false;
+ }
+
+ if ($add)
+ $activity_events[] = $f;
}
$done[] = $tmp;