Skip to content

Commit

Permalink
Fixed IAL fatal errors with accessing undefined index
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Feb 23, 2024
1 parent 1003879 commit f1abcf6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ TSPortal follows a basic numerical increase system for releases and not Semantic
The main reasoning behind this choice is the software is not built to be extended upon, therefore no stable public API exists.

## [Unreleased](https://github.com/miraheze/TSPortal/compare/v11...master)

## Version 17 (2024-02-23)

### Fixed
- Fixed IAL fatal errors with accessing undefined index

## Version 16 (2024-02-09)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
|
*/

'version' => 16,
'version' => 17,

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
$comment = $request->input( 'comment' );
$explodedComment = explode( '#', $comment );

$serialisedID = ( is_array( $explodedComment ) ) ? preg_replace( '/[^a-z\d]/i', '', $explodedComment[1] ) : null;
$serialisedID = ( is_array( $explodedComment ) && isset( $explodedComment[1] ) ) ? preg_replace( '/[^a-z\d]/i', '', $explodedComment[1] ) : null;

$updates = [
'user' => User::findOrCreate( $request->input( 'username' ) )->id,
Expand Down

0 comments on commit f1abcf6

Please sign in to comment.