FR 2251 then LA 5768 at Barcelona
Marrakesh → Barcelona → Ibiza
Timetable, Barcelona time
13:40FR 2251 from Marrakesh at the gate
12:10LA 5768 to Ibiza leaves the gate
22 h 30 apart on the timetable, overnight
LA 5768 leaves 22 h 30 after FR 2251 arrives on the timetable: more than half a day, so not a connection we count.