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

(backport) dynamix/include/SysDevs.php: fix PHP warnings #1855

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

desertwitch
Copy link
Contributor

backport of #1854, 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 limetech merged commit f3f8940 into unraid:6.12 Nov 15, 2024
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