Skip to content

A live bird collage card for your Home Assistant dashboard.

Update play.php

Alexandrec55cff6e4530
diff --git a/scripts/play.php b/scripts/play.php
index e610c20e..a762002e 100644
--- a/scripts/play.php
+++ b/scripts/play.php
@@ -32,8 +32,7 @@ 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();