diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-04-14 21:37:53 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-04-14 21:37:53 +0000 |
commit | 612509bef38393917793c697fee79ba31df55fb6 (patch) | |
tree | 0063459f9942b5ce4f8b6de921828f673e95f5e9 /include | |
parent | c2181683c90b0f8c515985b8817bb9f5c979e06d (diff) |
no php warning if website_url is missing from comment form submission (many spam robots do not fill it)
git-svn-id: http://piwigo.org/svn/trunk@28183 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/picture_comment.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/picture_comment.inc.php b/include/picture_comment.inc.php index f69e1447f..70dfa8ef6 100644 --- a/include/picture_comment.inc.php +++ b/include/picture_comment.inc.php @@ -48,7 +48,7 @@ if ( $page['show_comments'] and isset( $_POST['content'] ) ) $comm = array( 'author' => trim( @$_POST['author'] ), 'content' => trim( $_POST['content'] ), - 'website_url' => trim( $_POST['website_url'] ), + 'website_url' => trim( @$_POST['website_url'] ), 'email' => trim( @$_POST['email'] ), 'image_id' => $page['image_id'], ); |