Skip to content

Commit ac0ef84

Browse files
Update File.php
1 parent fdf7871 commit ac0ef84

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)