Ignore:
Timestamp:
Nov 20, 2007, 11:34:13 PM (17 years ago)
Author:
rub
Message:

Send comment notification only if comment is not validated and $conf is true.

Merge BSF 2165:2166 into branch-1_7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/include/functions_comment.inc.php

    r1908 r2167  
    190190    $comm['id'] = mysql_insert_id();
    191191
    192     if ( ($comment_action=='validate' and $conf['email_admin_on_comment'])
    193       or $conf['email_admin_on_comment_validation'] )
     192    if
     193      (
     194        ($comment_action=='validate' and $conf['email_admin_on_comment'])
     195        or
     196        ($comment_action!='validate' and $conf['email_admin_on_comment_validation'])
     197      )
    194198    {
    195199      include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
Note: See TracChangeset for help on using the changeset viewer.