From c1bc63e86b108c351c5b353d1634fc4d18167567 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 15 Jan 2024 18:54:46 +0000 Subject: [PATCH] boo(l) --- core/imageboard/image.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/imageboard/image.php b/core/imageboard/image.php index c2482305..7d05e866 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -551,7 +551,8 @@ class Image implements \ArrayAccess global $database; if ($locked !== $this->locked) { $database->execute("UPDATE images SET locked=:yn WHERE id=:id", ["yn" => $locked, "id" => $this->id]); - log_info("core_image", "Setting Post #{$this->id} lock to: $locked"); + $s = $locked ? "locked" : "unlocked"; + log_info("core_image", "Setting Post #{$this->id} to $s"); } }