Merge branch 'ent-1902-sql-error' into 'develop'

Elimina un error SQL al obtener noticias

See merge request artica/pandorafms!1415
This commit is contained in:
vgilc 2018-04-17 16:22:44 +02:00
commit 778be05874
1 changed files with 4 additions and 0 deletions

View File

@ -2289,6 +2289,10 @@ function get_news($arguments) {
$limit = get_argument ('limit', $arguments, 99999999);
$id_group = array_keys(users_get_groups($id_user, false, true));
// Empty groups
if (empty($id_group)) return array();
$id_group = implode(',',$id_group);
$current_datetime = date('Y-m-d H:i:s', time());
$modal = (int) $modal;