revive-adserver/revive-adserver — pull request #237 by mreiden (2014-01-07 15:46:29+00:00)
Title: Update advertiser-index.php

The $banner variable in the foreach reference loop must be unset to avoid an active advertiser appearing inactive when the $banner variable is used for building the advertiser tree.

See the warning on http://php.net/manual/en/control-structures.foreach.php :
"Reference of a $value and the last array element remain even after the foreach loop. It is recommended to destroy it by unset()."