000-CMS
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 elkuku elkuku - close - 4 May 2014
avatar elkuku
elkuku - comment - 4 May 2014

Hi,
this repository is for the Joomla! Issue Tracker application. Your issue pertains to the Joomla! CMS, please report your issue at https://github.com/joomla/joomla-cms/issues/new

Thanks!

avatar elkuku elkuku - change - 4 May 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-05-04 17:13:55
avatar elkuku elkuku - close - 4 May 2014

Add a Comment

Login with GitHub to post a comment