Fixed bug when changing state to several entries at once.

Entries were always marked as read; now the "read" boolean argument passed to the function is used. This way entries can be mass-marked either as read or unread (even if we currently make no use of the possibility of mass-marking entries as unread).