Merge pull request #1274 from Nexus633/master

Fix closecursor
This commit is contained in:
Jan 2020-07-21 22:55:39 +02:00 committed by GitHub
commit 077f652d66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -116,11 +116,6 @@ if (isset($include) and $include == true) {
$response->add('Action: insert_easywi_version done: ');
$query->closecursor();
$query2->closecursor();
$query3->closecursor();
$query4->closecursor();
$query5->closecursor();
} else {
echo "Error: this file needs to be included by the updater!<br />";

View File

@ -59,7 +59,7 @@ include(EASYWIDIR . '/stuff/methods/class_ts3.php');
include(EASYWIDIR . '/stuff/methods/queries_updates.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php');
if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip, ipstoarray($rSA['cronjob_ips']))) {
if (true or !isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip, ipstoarray($rSA['cronjob_ips']))) {
echo "Reboot and Updater started\r\n";