Skip to content

Commit

Permalink
Update site.php
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeforJoomla Boy authored Jan 27, 2017
1 parent 33ffdfa commit 64701ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/cms/application/site.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,8 @@ public function getTemplate($params = false)
$cache->store($templates, $cacheId);
}

// Unset the $template reference to the last $templates[n] item cycled in the foreach above to avoid to edit the $templates array in the following assignment
unset($template);
if (isset($templates[$id]))
{
$template = $templates[$id];
Expand Down

0 comments on commit 64701ef

Please sign in to comment.