Skip to content

Commit

Permalink
MDL-12530 - fixed changing of tag type in tag management
Browse files Browse the repository at this point in the history
  • Loading branch information
poltawski committed Dec 27, 2007
1 parent ed3e48f commit 11bdc5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tag/manage.php
Expand Up @@ -77,13 +77,14 @@
$changed = array();

foreach ($tagschecked as $tag_id) {
if (!in_array($tagtypes[$tag_id], $existing_tagtypes)) {
if (!array_key_exists($tagtypes[$tag_id], $existing_tagtypes)) {
//can not add new types here!!
continue;
}

// update tag type;
$tag = tag_by_id($tag_id);
$tag->timemodified = time();
$tag->tagtype = $tagtypes[$tag_id];

if (update_record('tag', $tag)) {
Expand Down

0 comments on commit 11bdc5a

Please sign in to comment.