Skip to content

Commit a923eca

Browse files
Merge pull request #23 from dutchenkoOleg/master
fix str2number method
2 parents e85a718 + d7c756a commit a923eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WezomAgency/R2D2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function resourceContent($path)
126126
*/
127127
public function str2number($value = '', $int = false)
128128
{
129-
if (strpos('%')) {
129+
if (strpos($value, '%')) {
130130
return 0;
131131
}
132132
return $int ? intval($value) : floatval($value);

0 commit comments

Comments
 (0)