From 612509bef38393917793c697fee79ba31df55fb6 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 14 Apr 2014 21:37:53 +0000 Subject: [PATCH] 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 --- include/picture_comment.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'], );