avoid calling non existing method

This commit is contained in:
Gilles Crettenand
2015-05-21 14:32:13 +02:00
parent c1b68ccfe6
commit eed4a1ef9c

View File

@@ -287,14 +287,6 @@ class AudioBook extends DbMapping
}, $results->to_array());
}
public function to_array()
{
if (!$this->loaded) {
$this->loadDetails();
}
return parent::to_array();
}
public function __set($name, $value)
{
if ($name == 'code' && is_string($value)) {