Send only to students see BT#12901

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 166d1471f6
commit e6b3a47b80
  1. 5
      main/inc/lib/ScheduledAnnouncement.php

@ -270,7 +270,10 @@ class ScheduledAnnouncement extends Model
$sessionId = $result['session_id'];
$sessionInfo = api_get_session_info($sessionId);
self::update(['id' => $result['id'], 'sent' => 1]);
$users = SessionManager::get_users_by_session($sessionId);
$users = SessionManager::get_users_by_session(
$sessionId,
0
);
$subject = $result['subject'];
$message = $result['message'];

Loading…
Cancel
Save