From 954319ded3f85683f0e9caa174e26aee5528ff30 Mon Sep 17 00:00:00 2001
From: Alexandre <44178713+alexbelgium@users.noreply.github.com>
Date: Wed, 26 Jun 2024 16:22:07 +0200
Subject: [PATCH] Avoid unecessary change
---
scripts/play.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/scripts/play.php b/scripts/play.php
index 34f036d..e610c20 100644
--- a/scripts/play.php
+++ b/scripts/play.php
@@ -32,7 +32,8 @@ if(isset($_GET['deletefile'])) {
echo "Error - file deletion failed : " . implode(", ", $output) . "
";
}
$result1 = $statement1->execute();
- if ($result1 === false || $db_writable->changes() === 0) {
+ if ($result1 === false || $db_writable
+->changes() === 0) {
echo "Error - database line deletion failed : " . $db_writable->lastErrorMsg();
}
$db_writable->close();
@@ -399,8 +400,8 @@ if(!isset($_GET['species']) && !isset($_GET['filename'])){
?>