Commit df5d273
fix: normalize corrupt Docker info cache before the refresh decision
Addresses CodeRabbit: the is_array guard was only at getAllInfo's return, so a
truthy scalar from a corrupt cache made both !$containers and empty() false,
skipping the refresh and returning [] indefinitely. Normalize non-arrays to []
right after the read so the existing refresh path rebuilds from Docker.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 4ccdd1f commit df5d273
1 file changed
Lines changed: 12 additions & 6 deletions
File tree
- source/community.applications/usr/local/emhttp/plugins/community.applications/include
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2033 | 2033 | | |
2034 | 2034 | | |
2035 | 2035 | | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
2036 | 2043 | | |
2037 | | - | |
| 2044 | + | |
2038 | 2045 | | |
2039 | 2046 | | |
2040 | 2047 | | |
| |||
2050 | 2057 | | |
2051 | 2058 | | |
2052 | 2059 | | |
2053 | | - | |
2054 | | - | |
2055 | | - | |
2056 | | - | |
2057 | | - | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
2058 | 2064 | | |
2059 | 2065 | | |
2060 | 2066 | | |
| |||
0 commit comments