]> git.leonardobizzoni.com Git - highschool-graduation-project/commitdiff
fixed typo
authorLeonardoBizzoni <leo2002714@gmail.com>
Sun, 3 Jul 2022 08:56:57 +0000 (10:56 +0200)
committerLeonardoBizzoni <leo2002714@gmail.com>
Sun, 3 Jul 2022 08:56:57 +0000 (10:56 +0200)
www/vtuberIsLive.php

index e9c123e4b3237e435db36c6d9da855ff718f10e5..d01ac2ab80f1563d7a114ad5b2fcc55f67f009aa 100644 (file)
@@ -76,7 +76,7 @@ while (true) {
                 $tag = $result->item($i)->getAttribute("href");
                 if (str_contains($tag, "https://www.youtube.com/watch?v=")) {
                     echo "{$vtuber["username"]} - $tag\n";
-                    $stmt = $app->db->pdo->prepare("update vtubers set live='$tag', sent=0 where live=NULL and id=" . $vtuber["id"]);
+                    $stmt = $app->db->pdo->prepare("update vtubers set live='$tag', sent=0 where live IS NULL and id=" . $vtuber["id"]);
                     $stmt->execute();
                     $isLive = true;
                 }