databases...
This commit is contained in:
parent
f78edfcf99
commit
235b976dbc
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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'];
|
||||
|
|
Reference in a new issue