Thanks a lot madmax7, that really helped.
I had an odd problem, breadcrumbs were displayed for every page but the post pages, unless i was logged as an admin.
Following your idea, I also managed to display the post’s categories by changing :
if (is_single() && $opt['singlecatprefix']) {
$cats = get_the_category();
to
if (is_single() && $opt['singlecatprefix']) {
$cats = get_the_category($wp_query->post->ID);