Has anyone found the solution to this error:

PHP Warning: Variable passed to each() is not an array or object in /home/xxxxxx/public_html/includes/classes/dynamic_price_updater.php on line 198

Line 198 reads like this:

while (list($option, $value) = each($this->_shoppingCart->contents[$this->_post['products_id']]['attributes'])) {

Any suggestions or a fix would greatly be appreciated.

Thanks