|
@@ -13970,7 +13970,7 @@ BUILDIN_FUNC(replacestr)
|
|
|
}
|
|
|
|
|
|
if(script_hasdata(st, 5)) {
|
|
|
- if(script_isint(st,5))
|
|
|
+ if( !script_isstring(st,5) )
|
|
|
usecase = script_getnum(st, 5) != 0;
|
|
|
else {
|
|
|
ShowError("script:replacestr: Invalid usecase value. Expected int got string\n");
|
|
@@ -14051,7 +14051,7 @@ BUILDIN_FUNC(countstr)
|
|
|
}
|
|
|
|
|
|
if(script_hasdata(st, 4)) {
|
|
|
- if(script_isint(st,4))
|
|
|
+ if( !script_isstring(st,4) )
|
|
|
usecase = script_getnum(st, 4) != 0;
|
|
|
else {
|
|
|
ShowError("script:countstr: Invalid usecase value. Expected int got string\n");
|