Error in serverlog -> Undefined index: path in

i2Paq

I have an error in the index.php of my template and I cannot find why it is doing this.
My guess is that it has always been there but it is time to solve it.

The complete error is;

PHP notice: Undefined index: path in /var/site/templates/template/index.php on line 115

Here are the lines 113 to 118 which belong together:


113 // Get language page link
114 $parse_wb_url = parse_url(WB_URL);
115 $set = $parse_wb_url['path'];
116 $actual = $_SERVER['REQUEST_URI'];
117 $pageslen = strlen(PAGES_DIRECTORY);
118 $language_link = substr(str_replace($set, '', $actual), $pageslen, 3);


Thanks in advance!
Opensource is my life, but then elsewhere.