Shish you are too clever for scrutinizer-ci.

This commit is contained in:
jgen 2014-04-24 05:29:02 -04:00
parent ce524e8729
commit 7e41194b7f

View file

@ -41,7 +41,7 @@ class Image {
public $hash, $filesize; public $hash, $filesize;
public $filename, $ext; public $filename, $ext;
public $owner_id, $owner_ip; public $owner_id, $owner_ip;
public $posted; public $posted, $posted_timestamp;
public $source; public $source;
public $locked; public $locked;
@ -54,7 +54,7 @@ class Image {
foreach($row as $name => $value) { foreach($row as $name => $value) {
// some databases use table.name rather than name // some databases use table.name rather than name
$name = str_replace("images.", "", $name); $name = str_replace("images.", "", $name);
$this->$name = $value; // hax $this->$name = $value; // hax, this is likely the cause of much scrutinizer-ci complaints.
} }
$this->posted_timestamp = strtotime($this->posted); // pray $this->posted_timestamp = strtotime($this->posted); // pray
$this->locked = bool_escape($this->locked); $this->locked = bool_escape($this->locked);