Skip to content

Commit

Permalink
fixed undefined notice
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 16, 2007
1 parent 8e1ec6b commit 2d7e3f9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tag/manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
$notice = tag_name_from_string(implode($tagschecked, ', '));
$notice = str_replace(',', ', ', $notice);

$err_notice = '';

switch($action) {

case 'delete':
Expand Down Expand Up @@ -68,7 +70,6 @@
$existing_tags = tags_id( $normalized_new_names_csv );

//notice to warn that names already exist
$err_notice = '';
foreach ($existing_tags as $name => $tag){
$err_notice .= $name . ', ';
}
Expand Down Expand Up @@ -96,8 +97,12 @@

echo '<br/>';

notify($err_notice, 'red');
notify($notice , 'green');
if ($err_notice) {
notify($err_notice, 'red');
}
if ($notice) {
notify($notice , 'green');
}

print_tag_management_list();

Expand Down

0 comments on commit 2d7e3f9

Please sign in to comment.