aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-11-20 22:30:58 +0000
committerrub <rub@piwigo.org>2007-11-20 22:30:58 +0000
commite480a291cd8da675c855ed2fbcdb8cbdcedf5cc1 (patch)
tree5375521fb0ebf1031bae651578d1e9b93d7e9952
parent6c66b11889746d0b035b9a22ac1ffa2553f72081 (diff)
Send comment notification only if comment is not validated and $conf is true.
git-svn-id: http://piwigo.org/svn/trunk@2166 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_comment.inc.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/functions_comment.inc.php b/include/functions_comment.inc.php
index aaadb2fc9..f7f1878a7 100644
--- a/include/functions_comment.inc.php
+++ b/include/functions_comment.inc.php
@@ -189,8 +189,12 @@ INSERT INTO '.COMMENTS_TABLE.'
$comm['id'] = mysql_insert_id();
- if ( ($comment_action=='validate' and $conf['email_admin_on_comment'])
- or $conf['email_admin_on_comment_validation'] )
+ if
+ (
+ ($comment_action=='validate' and $conf['email_admin_on_comment'])
+ or
+ ($comment_action!='validate' and $conf['email_admin_on_comment_validation'])
+ )
{
include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');