favorite_nodes appears to be expecting the 4.7-style returned array from node_get_types(). I was getting a bunch of errors on the calls to natcasesort in PHP 5.2. To get rid of them, I changed every call to this:

node_get_types('names')

This returns an array of just the type names, which is what we want.