Skip to content

A live bird collage card for your Home Assistant dashboard.

Avoid unecessary change

Alexandre954319ded3f8
diff --git a/scripts/play.php b/scripts/play.php
index 34f036d3..e610c20e 100644
--- a/scripts/play.php
+++ b/scripts/play.php
@@ -32,7 +32,8 @@ if(isset($_GET['deletefile'])) {
echo "Error - file deletion failed : " . implode(", ", $output) . "<br>";
}
$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'])){
?>
<div class="play">
<?php if($view == "byspecies" || $view == "date") { ?>
- <div style="width: auto;
- text-align: center">
+<div style="width: auto;
+ text-align: center">
<form action="views.php" method="GET">
<input type="hidden" name="view" value="Recordings">
<input type="hidden" name="<?php echo $view; ?>" value="<?php echo $_GET['date']; ?>">