On row 78 $vid_where is assigned a closing parenthesis without it being checked whether or not an opening parenthesis had actually been added - this should cause an SQL error when no vocabularies exists as far as I can see.

Comments

greggles’s picture

Status: Active » Closed (duplicate)

Thanks for the report and the idea on how to fix it. I decided on a similar but slightly altered approach in #300068: MySQL Error during bulk generate of taxonomy terms.

Could you help review/improve that patch?