Commit 6cf9d5d3 authored by Johan Cwiklinski's avatar Johan Cwiklinski Committed by Johan Cwiklinski

Fix undefined index

parent fca1a4a2
......@@ -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->defineAllTabs());
$first_tab = array_shift($tabs);
if ($first_tab) {
Session::setActiveTab(self::getType(), $first_tab);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment