Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Undefined array key 2 #362

Merged
merged 1 commit into from
Jun 1, 2024

Conversation

JohnVillalovos
Copy link
Contributor

@JohnVillalovos JohnVillalovos commented May 31, 2024

Was seeing the following errors in the log:
PHP Warning: Undefined array key 2 in /var/www/html/Domain/ReservationItemView.php on line 490

The issue was caused by array_splice()

After using array_splice then $name_parts is now only a single element array, as all other elements have been removed and used to generate $firstnames

Was seeing the following errors in the log:
  PHP Warning:  Undefined array key 2 in /var/www/html/Domain/ReservationItemView.php on line 490

The issue was caused by `array_splice()`

After using `array_splice` then `$name_parts` is now only a single
element array, as all other elements have been removed and used to
generate `$firstnames`
@effgarces effgarces merged commit 22c526a into LibreBooking:develop Jun 1, 2024
1 check passed
@stiftovich
Copy link

Shouldn't htis fix also applied to line 514 in Domain/ReservationItemView.php?
array_splice() is used there as well.

@JohnVillalovos
Copy link
Contributor Author

Probably. I haven't hit that code path yet.

Feel free to create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants