From f0ee76e7c7c58f54822dc0896b17b73523d5a293 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 11 Jan 2023 19:45:26 +0000 Subject: [PATCH] format --- core/imageboard/image.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/imageboard/image.php b/core/imageboard/image.php index b381f6e8..d7539876 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -76,10 +76,10 @@ class Image public static function by_id(int $id): ?Image { global $database; - if($id > 2**32) { - // for some reason bots query huge numbers and pollute the DB error logs... - return null; - } + if ($id > 2**32) { + // for some reason bots query huge numbers and pollute the DB error logs... + return null; + } $row = $database->get_row("SELECT * FROM images WHERE images.id=:id", ["id"=>$id]); return ($row ? new Image($row) : null); }