Closed (fixed)
Project:
DvG Appointments
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2019 at 15:14 UTC
Updated:
10 May 2019 at 08:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joshahubbers commentedWe used a variable that was set within a if() condition, but not initialized. So if the condition was not met, the variable was not available. This patch initializes the variable, before it is altered in the if() condition.
Comment #3
joshahubbers commentedComment #4
paulvandenburg commentedThe solution is good, but the location could be better.
Further up the function the $expired value is defined, if there is a cache. The current solution now always overwrites that (possible) value.
Better would be to only set the variable if that possible var set is not done.
See attached patch.
Comment #5
joshahubbers commentedComment #7
paulvandenburg commented