2011-06-15 Sergio Martin <sergio.martin@artica.es>

* include/functions_events.php: Fixed repeated values into
	array of event ids in delete function merged from validate function




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4450 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-06-15 09:19:06 +00:00
parent 119d0d718a
commit 324102f2d7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-06-15 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php: Fixed repeated values into
array of event ids in delete function merged from validate function
2011-06-15 Koichiro Kikuchi <koichiro@rworks.jp>
* include/functions_ui.php: Fixed typos

View File

@ -110,6 +110,7 @@ function events_delete_event ($id_event, $similar = true) {
foreach ($id_event as $id) {
$id_event = array_merge ($id_event, events_get_similar_ids ($id));
}
$id_event = array_unique($id_event);
}
db_process_sql_begin ();
@ -162,7 +163,6 @@ function events_validate_event ($id_event, $similars = true, $comment = '', $new
foreach ($id_event as $id) {
$id_event = array_merge ($id_event, events_get_similar_ids ($id));
}
$id_event = array_unique($id_event);
}