line 161: isn't always an array

I suppose should be replaced by something like...
$classes = is_array($form_state['values'][$key][$build_mode]['css-class'])?implode(' ', $form_state['values'][$key][$build_mode]['css-class']):$form_state['values'][$key][$build_mode]['css-class'];
$class = (isset($form_values[$key][$build_mode]['css-class'])) ? $classes : '';

(don't know the code very well up to now, so no patch...)

Comments

swentel’s picture

Status: Active » Postponed (maintainer needs more info)

Hmm, can't reproduce this anymore with the latest code - might be a glitch between ds now sending an array of styles instead of a string ?
Can you do a re-test (with latest ds & nd_cck) and add following on line 160 (or somewhere around that)

   dsm($form_state['values'][$key][$build_mode]['css-class']);

Even de-selecting a style (if you have defined some of course) sends me an array here.

swentel’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Did another few tests with all latest versions and really seems to be a glitch, no probs here.