Ignore:
Timestamp:
Mar 29, 2006, 12:33:29 AM (18 years ago)
Author:
rub
Message:

[NBM] Step 5: Change notification queries in order to try to optimize treatment duration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/notification_by_mail.php

    r1105 r1112  
    231231      }
    232232
    233       $message = '';
    234       $news = news($row['last_send'], $dbnow);
    235       if (count($news) > 0)
    236       {
    237         array_push($return_list, $row);
    238 
    239         if ($is_action_send)
     233      if ($is_action_send)
     234      {
     235        $message = '';
     236        $news = news($row['last_send'], $dbnow);
     237        if (count($news) > 0)
    240238        {
     239          array_push($return_list, $row);
     240
    241241          $subject = '['.$conf['gallery_title'].']: '.l10n('nbm_ContentObject');
    242242          $message .= sprintf(l10n('nbm_ContentHello'), $row['username']).",\n\n";
     
    282282        }
    283283      }
     284      else
     285      {
     286        if (news_exists($row['last_send'], $dbnow))
     287        {
     288          array_push($return_list, $row);
     289        }
     290      }
    284291    }
    285292
Note: See TracChangeset for help on using the changeset viewer.