Undefined variable $theme in gin_login_theme()
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3514144. --> Reported by: [mglaman](https://www.drupal.org/user/2416470) Related to !41 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>If you happen to dynamically alter the available routes to an empty array, this following error is thrown</p> <pre>Undefined variable $theme in gin_login_theme()</pre><p>That's because $theme is not initialized before the foreach loop</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue