From 58a0f060ce82a742d477737b02d628572ae3f6aa Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 24 Oct 2020 19:13:46 +0100 Subject: [PATCH] avoid numeric columns --- core/imageboard/image.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/imageboard/image.php b/core/imageboard/image.php index 5d0e33c5..1476c70a 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -86,6 +86,8 @@ class Image { if (!is_null($row)) { foreach ($row as $name => $value) { + if(is_numeric($name)) continue; + // some databases use table.name rather than name $name = str_replace("images.", "", $name);