We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daaabb5 commit 406c85eCopy full SHA for 406c85e
system/RESTful/BaseResource.php
@@ -64,7 +64,7 @@ public function setModel($which = null)
64
{
65
if ($which !== null) {
66
$this->model = is_object($which) ? $which : null;
67
- $this->modelName = is_object($which) ? '' : $which;
+ $this->modelName = is_object($which) ? null : $which;
68
}
69
70
if (empty($this->model) && ! empty($this->modelName) && class_exists($this->modelName)) {
0 commit comments