mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
[NBM] Step 5: Change notification queries in order to try to optimize treatment duration.
git-svn-id: http://piwigo.org/svn/trunk@1112 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -230,14 +230,14 @@ order by
|
||||
include(get_language_filepath('admin.lang.php'));
|
||||
}
|
||||
|
||||
$message = '';
|
||||
$news = news($row['last_send'], $dbnow);
|
||||
if (count($news) > 0)
|
||||
if ($is_action_send)
|
||||
{
|
||||
array_push($return_list, $row);
|
||||
|
||||
if ($is_action_send)
|
||||
$message = '';
|
||||
$news = news($row['last_send'], $dbnow);
|
||||
if (count($news) > 0)
|
||||
{
|
||||
array_push($return_list, $row);
|
||||
|
||||
$subject = '['.$conf['gallery_title'].']: '.l10n('nbm_ContentObject');
|
||||
$message .= sprintf(l10n('nbm_ContentHello'), $row['username']).",\n\n";
|
||||
|
||||
@@ -281,6 +281,13 @@ order by
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (news_exists($row['last_send'], $dbnow))
|
||||
{
|
||||
array_push($return_list, $row);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Restore $user, $lang_info and $lang arrays (include/user.inc.php has been executed)
|
||||
|
||||
Reference in New Issue
Block a user