- check for correct variable value for store_defaultindex, fixes #459
- fix possible undefined variable in init-script
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user