diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 32a05f2ea37..1e4a08b31c3 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -134,6 +134,11 @@ if ($type) $sql .= " AND c.id = $type"; } +if ($time == "today") +{ + $sql .= " AND date_format(a.datea, '%d%m%Y') = ".strftime("%d%m%Y",time()); +} + if ($socid) { $sql .= " AND s.idp = $socid";