Skip to content

Commit abd2392

Browse files
authored
Merge pull request z-song#5704 from asundust/patch-1
修正preg_match()函数第二个参数需要为字符串
2 parents 3fb6c9e + c87428f commit abd2392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/Database/Administrator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(array $attributes = [])
4747
*/
4848
public function getAvatarAttribute($avatar)
4949
{
50-
if (url()->isValidUrl($avatar)) {
50+
if ($avatar && url()->isValidUrl($avatar)) {
5151
return $avatar;
5252
}
5353

0 commit comments

Comments
 (0)