Skip to content

Fix Undefined array key -1 warning#20

Open
abetomo wants to merge 1 commit intomichaelfranzl:masterfrom
abetomo:fix-warnings
Open

Fix Undefined array key -1 warning#20
abetomo wants to merge 1 commit intomichaelfranzl:masterfrom
abetomo:fix-warnings

Conversation

@abetomo
Copy link
Copy Markdown

@abetomo abetomo commented Sep 17, 2024

Warning if localhost is specified:

PHP Warning:  Undefined array key -1

Also changed to return $hostname as it is when IP is specified.

Warning if `localhost` is specified:

```
PHP Warning:  Undefined array key -1
```

Also changed to return $hostname as it is when IP is specified.
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.

1 participant