joomla/joomla-cms — pull request #2706 by FriendlyHacker (2013-12-21 09:37:37+00:00)
Title: $app->registeredurlparams is not defined

Moving the rest of the function inside the if loop makes sure $app->registeredurlparams is only referred to if actually exists.

This was causing memory leak on 3.2.1 Joomla install over PHP 5.5, performance has increased after the fix.