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:
parent
119d0d718a
commit
324102f2d7
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue