From: Stefan Sterz Date: Thu, 23 Mar 2023 15:44:53 +0000 (+0100) Subject: proxy: initialize the theme variable with an empty string X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9bcad3e1cbf23b7a9399a8319aeda00c60845b02;p=pmg-api.git proxy: initialize the theme variable with an empty string this removes a warning that was previously present due to using an uninitialized variable. Signed-off-by: Stefan Sterz --- diff --git a/src/PMG/Service/pmgproxy.pm b/src/PMG/Service/pmgproxy.pm index 310519a..5bd9de2 100755 --- a/src/PMG/Service/pmgproxy.pm +++ b/src/PMG/Service/pmgproxy.pm @@ -199,7 +199,7 @@ sub get_index { $mobile = $args->{mobile} ? 1 : 0; } - my $theme; + my $theme = ""; if (my $cookie = $r->header('Cookie')) { if (my $newlang = ($cookie =~ /(?:^|\s)PMGLangCookie=([^;]*)/)[0]) {