I'm using your module in combination with http://drupal.org/project/ctm
Works alright when a content-type has ctm permissions, if not then menu_stp throws an error on line #38 because the value is not an array.
I fixed it by adding these lines. Sorry for not posting a patch, can't create one from here!
Cheers
// add the line below on #38
if(is_array($form['menu']['pid']['#options'])) {
foreach(array_keys($form['menu']['pid']['#options']) as $ppid) {
if (!isset($mids[$ppid])) {
unset($form['menu']['pid']['#options'][$ppid]);
}
elseif ($mids[$ppid] == 1) { // sub-tree root, fix title
$form['menu']['pid']['#options'][$ppid] = _menu_stp_full_title($ppid);
}
}
}
// add the one parenthesis above