joomla/joomla-cms — pull request #3557 by Taliman (2014-05-04 17:32:38+00:00)
Title: Update article.php

#3556
J! 3.3 Stable
File : /administrator/components/com_content/models/article.php

For some reasons, it happens that the array
$associations[$item->language] = $item->id;
ends with a null element

Hence,
->where('id IN (' . implode(',', $associations) . ')');
leads to something like "id IN (3188, )"
which gives an error because of the ending comma.

Fix :
after the line :
$associations[$item->language] = $item->id;
add an array_filter :
$associations = array_filter($associations);