Permalink
Browse files

optional_param no longer accepts arrays

  • Loading branch information...
1 parent 2f83fee commit 40fd170efe164d96c481f2f6c1d7c702101b2642 @aolley aolley committed Jul 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 edit/tag/tag.class.php
View
@@ -57,7 +57,7 @@ public function process_form() {
if ($tag) {
$image->add_tag($tag);
} else if (optional_param('delete', 0, PARAM_INT)) {
- if ($deletes = optional_param('deletetags', array(), PARAM_RAW)) {
+ if ($deletes = optional_param_array('deletetags', array(), PARAM_RAW)) {
foreach ($deletes as $delete) {
$image->delete_tag(clean_param($delete, PARAM_INT));
}

0 comments on commit 40fd170

Please sign in to comment.