Skip to content

Commit fdf7871

Browse files
Update File.php
1 parent e1f5911 commit fdf7871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public final function put($data)
107107
$getPath = json_encode($data);
108108
}
109109

110-
if ($getPath != null && $getPath != "") {
110+
if ($getPath != null || $getPath != "") {
111111
return file_put_contents($this->getPath(), $getPath);
112112
} else {
113113
return null;

0 commit comments

Comments
 (0)