From d74bffe7b93df24848b2762434e93c5eca1b8d77 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 8 Jan 2005 22:08:15 +0000 Subject: [PATCH] Fix: register_globals --- htdocs/comm/action/index.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 61c2225d9b9..eab7766e229 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -1,7 +1,7 @@ * Copyright (C) 2003 Éric Seigne - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,8 +22,7 @@ * */ -/*! - \file htdocs/comm/action/index.php +/** \file htdocs/comm/action/index.php \ingroup commercial \brief Page accueil des actions commerciales \version $Revision$ @@ -77,12 +76,12 @@ $sql = "SELECT s.nom as societe, s.idp as socidp, s.client, a.id,".$db->pdate("a $sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."c_actioncomm as c, ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."user as u"; $sql .= " WHERE a.fk_soc = s.idp AND c.id=a.fk_action AND a.fk_user_author = u.rowid"; -if ($type) +if ($_GET["type"]) { - $sql .= " AND c.id = $type"; + $sql .= " AND c.id = ".$_GET["type"]; } -if ($time == "today") +if ($_GET["time"] == "today") { $sql .= " AND date_format(a.datea, '%d%m%Y') = ".strftime("%d%m%Y",time()); }