kenlog/UpdateNotifier

PHP Notice: Undefined index

kenlog opened this issue · 5 comments

@creecros I noticed this notification in the log. Some idea? I tried with "isset" but it's not good

when and where is it occurring? I'm not seeing it.

not showing up in my logs for v1.25 or 1.26, sure it's related to this plugin? copy the full log line.

didn't realize you had newer commits, i found it.

you had the right idea. isset is boolean though, so first determine if both are set, using && and then compare. so you needed both lines:

if (isset($installed_plugins[$key]['version']) && isset($available_plugins[$key]['version'])) {
if ($installed_plugins[$key]['version'] < $available_plugins[$key]['version']) {

you could combine all into one if....but it would be a long line. would look like if ((this && that) && (this < that))

Hi @creecros, here's a good thing this morning! Excellent solution 🥇