You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't want to wrap my head around this one ATM so I hope whoever did the refactor can recall a couple of things 馃槂
The basic issue is that the function isPackageInstalled will always return a named array, however the checks for "stuff" are all
isset(returned_data['somekey'])
which of course since the keys are set will pass, they are empty but set. I'm not sure the checks can be changed to empty() since 0 may be allowed (thats the part of me being lazy ATM and not wanting to wrap my head around it) ...
I guess one could also use null values in the default array and do a isnull check in place of isset.
OK please fix 馃槆
The text was updated successfully, but these errors were encountered:
Doh! ... And I thought Ema and Ant were getting old 馃槅
Although in my defense that commit was fine 馃懐 it was a later one where I added 2 more items to the default array (to mask errors) from someone else's refactor (meaning I blame @norv ) ... OK I'm off to fix this before I have to eat another turd sandwich !
I don't want to wrap my head around this one ATM so I hope whoever did the refactor can recall a couple of things 馃槂
The basic issue is that the function isPackageInstalled will always return a named array, however the checks for "stuff" are all
which of course since the keys are set will pass, they are empty but set. I'm not sure the checks can be changed to empty() since 0 may be allowed (thats the part of me being lazy ATM and not wanting to wrap my head around it) ...
I guess one could also use null values in the default array and do a isnull check in place of isset.
OK please fix 馃槆
The text was updated successfully, but these errors were encountered: