1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-09-23 19:18:21 +02:00

break to avoid undefined error (#514)

This commit is contained in:
perdedora 2022-11-28 22:10:20 +00:00 committed by GitHub
parent c8f88c14a8
commit 7571df84c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,8 +56,9 @@ switch ($mode) {
$ary = $query->fetchAll(); $ary = $query->fetchAll();
if (!$ary) { if (!$ary) { // captcha expired
echo "0"; echo "0";
break;
} else { } else {
$query = prepare("DELETE FROM `captchas` WHERE `cookie` = ? AND `extra` = ?"); $query = prepare("DELETE FROM `captchas` WHERE `cookie` = ? AND `extra` = ?");
$query->execute([$_GET['cookie'], $_GET['extra']]); $query->execute([$_GET['cookie'], $_GET['extra']]);