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

dynamix/include/SysDevs.php: fix PHP warnings #1854

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

desertwitch
Copy link
Contributor

@desertwitch desertwitch commented Sep 8, 2024

tests for exec-returned variable/line existence before usage.
fixes PHP warnings on "System Devices" page encountered under some circumstances:

PHP Warning:  Undefined array key 0 in /usr/local/emhttp/plugins/dynamix/include/SysDevs.php on line 94
PHP Deprecated:  preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /usr/local/emhttp/plugins/dynamix/include/SysDevs.php on line 94

-- Rysz

test for exec-returned variable existence before usage
@limetech
Copy link
Contributor

thx!

@desertwitch desertwitch deleted the fix-php-warning branch September 17, 2024 04:18
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.

2 participants