website rev 1080
Misc fix found from php logs (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 16 11:38:10 2012 +0200 (2012-07-16) |
parents | aa7d1a2e2356 |
children | 009fde71d02d |
files | lib/lang.php |
line diff
1.1 --- a/lib/lang.php Mon Jul 16 11:27:32 2012 +0200 1.2 +++ b/lib/lang.php Mon Jul 16 11:38:10 2012 +0200 1.3 @@ -5,7 +5,9 @@ 1.4 1.5 $addr = explode('/', $addr); 1.6 $cur = $addr[1]; 1.7 -$page = $addr[2]; 1.8 +$page = ''; 1.9 +if (isset($addr[2])) 1.10 + $page = $addr[2]; 1.11 if (isset($addr[3])) 1.12 $page = $addr[3]; 1.13