[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:
rub
2006-03-28 22:33:29 +00:00
parent 39c2bfb3b1
commit a2dd39df73
2 changed files with 268 additions and 73 deletions
+13 -6
View File
@@ -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)