kenlog / Nebula

Modern theme for kanboard + syntax highlighting for Markdown code :dash:
https://kanboard.org
MIT License
82 stars 8 forks source link

Use of undefined variable user #10

Closed amadeous closed 3 years ago

amadeous commented 4 years ago

Hi,

I noticed the following in my apache logs :

PHP Notice: Undefined variable: user in /var/www/kanboard/plugins/Nebula/Template/layout/header/creation_dropdown.php on line 31
PHP Notice: Undefined variable: user in /var/www/kanboard/plugins/Nebula/Template/layout/header/creation_dropdown.php on line 35
PHP Notice: Undefined variable: user in /var/www/kanboard/plugins/Nebula/Template/layout/header/creation_dropdown.php on line 39
PHP Notice: Undefined variable: user in /var/www/kanboard/plugins/Nebula/Template/layout/header/creation_dropdown.php on line 43

It seems that the $user variable the theme is looking for is not defined by Kanboard... I haven't encountered any functional issue yet but might be easy to fix and prevent some logs. :wink:

Thank you for your time and your nice theme ! :smiley:

Lennart97 commented 3 years ago

The same happens on docker with nginx.

PHP message: PHP Notice:  Undefined variable: user in /var/www/app/plugins/Nebula/Template/layout/header/creation_dropdown.php on line 31"
PHP message: PHP Notice:  Undefined variable: user in /var/www/app/plugins/Nebula/Template/layout/header/creation_dropdown.php on line 35"
PHP message: PHP Notice:  Undefined variable: user in /var/www/app/plugins/Nebula/Template/layout/header/creation_dropdown.php on line 39"
PHP message: PHP Notice:  Undefined variable: user in /var/www/app/plugins/Nebula/Template/layout/header/creation_dropdown.php on line 43"
Addendum-git commented 3 years ago

Same happens in localhost...

any solutions?