diff --git a/apps/onplay.c b/apps/onplay.c index af35824c1e..89a236bb11 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -53,6 +53,7 @@ #endif #include "main_menu.h" #include "sound_menu.h" +#include "database.h" static int context; static char* selected_file = NULL; @@ -556,9 +557,11 @@ int onplay(char* file, int attr, int from) items[i].desc = ID2P(LANG_MENU_SHOW_ID3_INFO); items[i].function = browse_id3; i++; - items[i].desc = ID2P(LANG_MENU_SET_RATING); - items[i].function = set_rating; - i++; + if(rundb_initialized) { + items[i].desc = ID2P(LANG_MENU_SET_RATING); + items[i].function = set_rating; + i++; + } } #ifdef HAVE_MULTIVOLUME