From 235b976dbc6c39b68ad5c1090b33fd3e614c1b02 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 26 Jan 2020 18:10:58 +0000 Subject: [PATCH] databases... --- core/imageboard/image.php | 4 ++-- core/user.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/imageboard/image.php b/core/imageboard/image.php index e6f07a96..e736794f 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -79,9 +79,9 @@ class Image // hax, this is likely the cause of much scrutinizer-ci complaints. if (in_array($name, ["locked", "lossless", "video", "audio"])) { - $this->$name = bool_escape($value); + $this->$name = bool_escape((string)$value); } elseif (in_array($name, ["id", "owner_id", "height", "width", "filesize", "length"])) { - $this->$name = int_escape($value); + $this->$name = int_escape((string)$value); } else { $this->$name = $value; } diff --git a/core/user.php b/core/user.php index c0c21f3c..bf4f42fe 100644 --- a/core/user.php +++ b/core/user.php @@ -51,7 +51,7 @@ class User { global $_shm_user_classes; - $this->id = int_escape($row['id']); + $this->id = int_escape((string)$row['id']); $this->name = $row['name']; $this->email = $row['email']; $this->join_date = $row['joindate'];