Merge pull request #798 from ultimatemember/fix/getting-active-tab

Fixed getting active tab
This commit is contained in:
Nikita Sinelnikov
2021-04-02 03:32:57 +03:00
committed by GitHub
+3 -4
View File
@@ -342,10 +342,9 @@ if ( ! class_exists( 'um\core\Profile' ) ) {
} else {
if ( ! empty( $tabs ) ) {
foreach ( $tabs as $k => $tab ) {
if ( ! empty( $tab['hidden'] ) ) {
$this->active_tab = $k;
break;
}
// set first tab in order
$this->active_tab = $k;
break;
}
}
}