In my quest to dissect the notes.php file and add a category delete function I noticed a bug that needed to be addressed.

Scenario: You go into note categories section to insert a new category. Once you get there fore some reason you change your mind and click the cancel button just to discover that it was created anyway.

Around line 447 you will see...

Code:
//echo zen_draw_hidden_field('notes_id', $note->fields['notes_id']) . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_NOTES, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
Change this line to...

Code:
//echo zen_draw_hidden_field('notes_id', $note->fields['notes_id']) . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_NOTES, 'action=categories') . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
This should cancel the action and return you to the categories menu.