diff --git a/main/admin/add_many_session_to_category.php b/main/admin/add_many_session_to_category.php index efd0f25b27..64632a3858 100644 --- a/main/admin/add_many_session_to_category.php +++ b/main/admin/add_many_session_to_category.php @@ -150,7 +150,7 @@ if (api_get_multiple_access_url()) { $sql = "SELECT s.id, s.name FROM $tbl_session s INNER JOIN $table_access_url_rel_session u ON s.id = u.session_id $where AND u.access_url_id = $access_url_id ORDER BY name"; } else { $sql = "SELECT id, name FROM $tbl_session $where ORDER BY name"; - } +} $result=Database::query($sql); $rows_session = Database::store_result($result); ?>