Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
glpi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
GLPI
glpi
Commits
6cf9d5d3
Commit
6cf9d5d3
authored
Jan 13, 2021
by
Johan Cwiklinski
Committed by
Johan Cwiklinski
Jan 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix undefined index
parent
fca1a4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
inc/commonglpi.class.php
inc/commonglpi.class.php
+1
-1
No files found.
inc/commonglpi.class.php
View file @
6cf9d5d3
...
...
@@ -1196,7 +1196,7 @@ class CommonGLPI {
// Init active tab to main if not defined
if
(
!
isset
(
$_SESSION
[
'glpi_tabs'
][
self
::
getType
()]))
{
// TODO: use array_key_first when php 7.3 is supported
$tabs
=
array_keys
(
$this
->
defineTabs
());
$tabs
=
array_keys
(
$this
->
define
All
Tabs
());
$first_tab
=
array_shift
(
$tabs
);
if
(
$first_tab
)
{
Session
::
setActiveTab
(
self
::
getType
(),
$first_tab
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment