- check for correct variable value for store_defaultindex, fixes #459

- fix possible undefined variable in init-script
This commit is contained in:
Michael Kaufmann (d00p)
2010-11-09 09:16:08 +00:00
parent 08e17f7d16
commit 39f17b1a9e
2 changed files with 8 additions and 3 deletions

View File

@@ -43,8 +43,8 @@ function inserttask($type, $param1 = '', $param2 = '', $param3 = '', $param4 = '
&& $param1 != ''
&& $param2 != ''
&& $param3 != ''
&& $param4 != '')
{
&& ($param4 == 0 || $param4 == 1)
) {
$data = Array();
$data['loginname'] = $param1;
$data['uid'] = $param2;

View File

@@ -183,7 +183,12 @@ if(!isset($settings['admin']['froxlor_graphic'])
*/
$remote_addr = $_SERVER['REMOTE_ADDR'];
$http_user_agent = $_SERVER['HTTP_USER_AGENT'];
if (empty($_SERVER['HTTP_USER_AGENT'])) {
$http_user_agent = 'unknown';
} else {
$http_user_agent = $_SERVER['HTTP_USER_AGENT'];
}
unset($userinfo);
unset($userid);
unset($customerid);