diff --git a/plugins/system/remember/remember.php b/plugins/system/remember/remember.php index 9350dbe00fc7f..a885efd32a106 100644 --- a/plugins/system/remember/remember.php +++ b/plugins/system/remember/remember.php @@ -38,6 +38,12 @@ class PlgSystemRemember extends JPlugin */ public function onAfterInitialise() { + // Get the application if not done by JPlugin. This may happen during upgrades from Joomla 2.5. + if (!$this->app) + { + $this->app = JFactory::getApplication(); + } + // No remember me for admin. if ($this->app->isAdmin()) {