Browse Source

[svn r16222] Fixed the announcement bug thanks to jand from the dokeos forum

Sven Vanpoucke 16 years ago
parent
commit
9cb9db42bd
1 changed files with 4 additions and 1 deletions
  1. 4 1
      main/announcements/announcements.inc.php

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

@@ -1,4 +1,4 @@
-<?php //$Id: announcements.inc.php 15247 2008-05-08 19:07:01Z juliomontoya $
+<?php //$Id: announcements.inc.php 16222 2008-09-02 09:07:00Z vanpouckesven $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -94,6 +94,9 @@ function show_to_form($to_already_selected)
 	$user_list=get_course_users();
 	$group_list=get_course_groups();
 
+	if ($to_already_selected == "")
+          $to_already_selected = array();
+
 	echo "\n<table id=\"recipient_list\" style=\"display: none;\">\n";
 	echo "\t<tr>\n";