diff --git a/install/install.php b/install/install.php index 97f7c65..4bc26e1 100755 --- a/install/install.php +++ b/install/install.php @@ -727,7 +727,7 @@ define(\'DEBUG\', FALSE); header("Location: install.php?step=user"); } if(isset($_POST['send'])){ - if($_POST['accept']!=1){ + if(isset($_POST['accept']) && $_POST['accept']==1){ $key=fopen('https://webengine.becast.at/install.php?install='.$sendkey, 'r'); $ikey= fgets($key,1024); fclose($key); @@ -736,7 +736,7 @@ define(\'DEBUG\', FALSE); include dirname(__FILE__, 2) .'/inc/config.inc.php'; include dirname(__FILE__, 2) .'/core/database/'.$config['db_class'].'.class.php'; $db = new db($config['host'], $config['user'], $config['pass'], $config['db'],'utf8', FALSE,TRUE); - $db->query("INSERT INTO `" . $config['prefix'] . "datacache` (`cache`,`content`,`expire`) VALUES ('installkey','".$ikey."','0')'"); + $db->query("INSERT INTO `" . $config['prefix'] . "datacache` (`cache`,`content`,`expire`) VALUES ('installkey','".$ikey."','0')"); } header("Location: ../index.php"); }