diff options
author | plegall <plg@piwigo.org> | 2010-02-28 20:58:45 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-02-28 20:58:45 +0000 |
commit | f1f59e937a3529b6342f1f23c7dda598d379e643 (patch) | |
tree | 1068f03cecf8781933608ff2765e9c3b839b2b4f /comments.php | |
parent | d2872aacef1557557c9997befd1d3af085083c36 (diff) |
improvement: avoid the use of @ instead of a real test
git-svn-id: http://piwigo.org/svn/branches/2.0@5003 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'comments.php')
-rw-r--r-- | comments.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/comments.php b/comments.php index b30db9fa8..70f020c73 100644 --- a/comments.php +++ b/comments.php @@ -117,7 +117,7 @@ if (!empty($_GET['author'])) // notification email) if (!empty($_GET['comment_id'])) { - check_input_parameter('comment_id', $_GET['comment_id'], false, PATTERN_ID); + check_input_parameter('comment_id', $_GET, false, PATTERN_ID); // currently, the $_GET['comment_id'] is only used by admins from email // for management purpose (validate/delete) @@ -183,7 +183,7 @@ if (isset($_GET['delete']) or isset($_GET['validate'])) if (isset($_GET['delete'])) { - check_input_parameter('delete', $_GET['delete'], false, PATTERN_ID); + check_input_parameter('delete', $_GET, false, PATTERN_ID); $query = ' DELETE @@ -195,7 +195,7 @@ DELETE if (isset($_GET['validate'])) { - check_input_parameter('validate', $_GET['validate'], false, PATTERN_ID); + check_input_parameter('validate', $_GET, false, PATTERN_ID); $query = ' UPDATE '.COMMENTS_TABLE.' |