Ignore:
Timestamp:
Nov 20, 2007, 11:30:58 PM (16 years ago)
Author:
rub
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_comment.inc.php

    r2155 r2166  
    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.