cakephp/cakephp — pull request #676 by starlocke (2012-05-30 19:37:13+00:00)
Title: 1.3 - Fixed lack of if-condition nesting; and documented callback.

Nested isset($resp['url']) one level deeper for proper logic, because the
elseif($resp !== null) block should only execute when $resp is not an array.

Fixes this issue: Components that actually extend from Component would return
an empty array; those empty arrays would fall into the elseif() block,
overwriting $url and the result is a redirect to the current controller+action
instead of to the intended target.

Moved the first line of the callback system down one, to strengthen its
appearance as a code block.

Added insight for how the callback is supposed to work, and a hint about what
extract($resp) will affect.