renlok / WeBid

The official WeBid github fork
http://www.webidsupport.com
114 stars 125 forks source link

Fix reuse of conditional variable inside loop #492

Closed robberteggermont closed 6 years ago

robberteggermont commented 6 years ago

$extra was not being (re)initialized at the start of each iteration, so once it was set it would remain set in all following iterations. This would cause those queries to fail because of missing parameters. Fix by (re)setting $extra to empty at the start of each iteration.