Error when upgrading to 7.x-2.6
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #2499733. --> Reported by: [jastraat](https://www.drupal.org/user/105111) >>> <p>Notice: Undefined index: depth_relative in menu_tree_block_data() (line 360 of menu_block.module).</p> <p>The 7.x-2.6 version added relative depth to menu block configuration which is great. However, if someone has existing sites with many menu blocks configured (at least using panels), $config['depth_relative'] will not exist in the configuration for any of them until each and every panel pane/block is re-saved. And all of them will throw errors.</p> <p>That places quite a burden on folks attempting to upgrade large numbers of sites.</p> <p>Could you wrap the new variable in isset? Example:</p> <div class="codeblock"> <pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br></span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$config</span><span style="color: #007700">[</span><span style="color: #DD0000">'depth_relative'</span><span style="color: #007700">]) &amp;&amp; </span><span style="color: #0000BB">$config</span><span style="color: #007700">[</span><span style="color: #DD0000">'depth_relative'</span><span style="color: #007700">]) {<br>}<br></span><span style="color: #0000BB">?&gt;</span></span></pre></div>
issue