File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
components/com_users/src/View/Profile Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -139,13 +139,14 @@ public function display($tpl = null)
139139 unset($ this ->data ->text );
140140
141141 // Check for layout from menu item.
142- $ query = Factory::getApplication ()->getMenu ()->getActive ()-> query ;
142+ $ active = Factory::getApplication ()->getMenu ()->getActive ();
143143
144144 if (
145- isset ($ query ['layout ' ]) && isset ($ query ['option ' ]) && $ query ['option ' ] === 'com_users '
146- && isset ($ query ['view ' ]) && $ query ['view ' ] === 'profile '
145+ $ active && isset ($ active ->query ['layout ' ])
146+ && isset ($ active ->query ['option ' ]) && $ active ->query ['option ' ] === 'com_users '
147+ && isset ($ active ->query ['view ' ]) && $ active ->query ['view ' ] === 'profile '
147148 ) {
148- $ this ->setLayout ($ query ['layout ' ]);
149+ $ this ->setLayout ($ active -> query ['layout ' ]);
149150 }
150151
151152 // Escape strings for HTML output
You can’t perform that action at this time.
0 commit comments