$vids = variable_get('user_terms_vocabs', '');

Bad! $vids is expected to be an array. This causes error messages if you go to edit your account without having selected some vocabs. Arguably a rare case, but $vids should be set to a proper default of array().

Comments

joachim’s picture

Status: Active » Fixed
StatusFileSize
new1.7 KB

#848732 by joachim: Fixed incorrect defaults for variable_get().

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.