?
avatar Taliman
Taliman
4 May 2014

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);

avatar Taliman Taliman - open - 4 May 2014
avatar Bakual
Bakual - comment - 4 May 2014

Closing this as there is a PR with the same information

avatar Bakual Bakual - change - 4 May 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-05-04 17:37:25
avatar Bakual Bakual - close - 4 May 2014
avatar zero-24 zero-24 - close - 4 May 2014
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment