olehj / disklocation

Disk Location is a plugin for Unraid.
https://forums.unraid.net/topic/77302-plugin-disk-location
GNU General Public License v3.0
21 stars 3 forks source link

Warnings about non-numeric values posted in some situations #187

Closed olehj closed 1 year ago

olehj commented 2 years ago

Variables checked for being set is now instead checked if they're numeric.

olehj commented 2 years ago

device.php line #231 and possible more.

lrdfrd commented 2 years ago

I have this error.

UnRaid Version 6.10.3 2022-06-14

olehj commented 1 year ago

I have this error.

UnRaid Version 6.10.3 2022-06-14

Do you have the newest version? If you do: which line(s) does it complain about?

chriscarpenter12 commented 1 year ago

For me it shows on 231 when testing this plugin.

Warning: A non-numeric value encountered in /usr/local/emhttp/plugins/disklocation/pages/devices.php on line 231

olehj commented 1 year ago

This fix was never really released. But as I haven't updated anything else since June, I have merged the code now so you can go ahead and update and test it.