Skip to content

Commit 406c85e

Browse files
committed
fix: Revert null value for $modelName
1 parent daaabb5 commit 406c85e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/RESTful/BaseResource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function setModel($which = null)
6464
{
6565
if ($which !== null) {
6666
$this->model = is_object($which) ? $which : null;
67-
$this->modelName = is_object($which) ? '' : $which;
67+
$this->modelName = is_object($which) ? null : $which;
6868
}
6969

7070
if (empty($this->model) && ! empty($this->modelName) && class_exists($this->modelName)) {

0 commit comments

Comments
 (0)