diff options
Diffstat (limited to 'htdocs/src/Post.inc.php')
-rw-r--r-- | htdocs/src/Post.inc.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/htdocs/src/Post.inc.php b/htdocs/src/Post.inc.php index eaad6b3..c99f938 100644 --- a/htdocs/src/Post.inc.php +++ b/htdocs/src/Post.inc.php @@ -414,8 +414,7 @@ class Post { } public function notifyModerators() { - $ui = new UserIterator(); - $ui->filterNotify(true); + $ui = new ModerationSchedule(); $ui->query(); $url = buildUrl('postings/' . $this->getId() .'.html?moderate'); @@ -425,10 +424,10 @@ class Post { $email->appendMessage("A new posting is awaiting moderation.\nYou can view the post at $url"); if ($ui->valid()) { - foreach($ui as $user) { - $email->setTo($user->getEmail()); - $email->send(); - } + $user = $ui->current(); + + $email->setTo($user->getEmail()); + $email->send(); } } } |