Commit c888810
committed
GitLab: Fix system warning when committing
When checkin.php processes the GitLab webhook, an error occurs:
count(): Argument #1 ($var) must be of type Countable|array, null given
This is caused by checking a non-existent 'parents' property from the
Changeset JSON data.
Since we build an array of parents from the JSON data, reuse that to set
the changeset's parent.
Fixes #3461 parent 50338db commit c888810
2 files changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | 350 | | |
355 | 351 | | |
356 | 352 | | |
| |||
364 | 360 | | |
365 | 361 | | |
366 | 362 | | |
367 | | - | |
368 | | - | |
369 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
370 | 369 | | |
371 | 370 | | |
372 | 371 | | |
| |||
0 commit comments