Browse Source

fix announcements for a group

Juan Carlos Raña 15 years ago
parent
commit
aead836cdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/announcements/announcements.inc.php

+ 1 - 1
main/announcements/announcements.inc.php

@@ -712,7 +712,7 @@ function sent_to($tool, $id)
 	while ($row=Database::fetch_array($result)) {
 		// if to_group_id is null then it is sent to a specific user
 		// if to_group_id = 0 then it is sent to everybody
-		if (!is_null($row['to_group_id']))
+		if ($row['to_group_id'] != 0)
 		{
 			$sent_to_group[]=$row['to_group_id'];
 		}