From dc50b4ccf435cc07a399d95dbfcd8a53e86176c1 Mon Sep 17 00:00:00 2001 From: LeonardoBizzoni Date: Sun, 3 Jul 2022 10:56:57 +0200 Subject: [PATCH] fixed typo --- www/vtuberIsLive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/vtuberIsLive.php b/www/vtuberIsLive.php index e9c123e..d01ac2a 100644 --- a/www/vtuberIsLive.php +++ b/www/vtuberIsLive.php @@ -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; } -- 2.52.0