Commit 218e07e
authored
fix: guard against undefined properties on license object in Library (#1269)
* fix: guard against undefined properties on license object in Library
When the license option is stored as a stdClass without `key` or
`download_id` properties (e.g. on a free/unlicensed install), PHP 8
throws an undefined-property notice. Add isset() guards so both
properties fall back to an empty string.
* fix: fix telemetry error1 parent 71156c2 commit 218e07e
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
| 226 | + | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
0 commit comments