diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/activity.php | 16 |
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;
|