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:
commit
778be05874
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue