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'];