eee
This commit is contained in:
+1
-2
@@ -248,8 +248,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
|
|||||||
} else {
|
} else {
|
||||||
$query->whereRaw($param);
|
$query->whereRaw($param);
|
||||||
}
|
}
|
||||||
$data = $query->first();
|
if (($data = $query->first()) === false) {
|
||||||
if ($data === false) {
|
|
||||||
throw new Exception($model->getLastError());
|
throw new Exception($model->getLastError());
|
||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
|
|||||||
Reference in New Issue
Block a user