View Full Version : Can't delete all preferences in RSS News & Podcast plugins

2007-03-13, 01:20
I noticed if you delete all of the saved URLs in either of the Podcast or RSS News plugins, the list reverts to the default!

I was going to raise this as a bug, but then it occurred to me that this might be deliberate?
I noticed when copying the Settings.pm code in my own plugin, the code used for saving the array preferences breaks if only 1 option is provided in the web page - the parameter stops being an array:
Slim::Networking::Select::select (237) Error: Select task failed: Can't use string ("slimserver") as an
ARRAY ref while "strict refs" in use at C:/Program Files/SlimServerSVN/server/Plugins/SlimScrobbler/Settings.pm line 62.

Only, in my plugin there are no default settings (it's a list of user accounts).
Also, I can't see how the list is being set back to the defaults in these plugins?