Skip to content

Commit

Permalink
Update Scripts/jsToPhp.js
Browse files Browse the repository at this point in the history
Co-authored-by: Dima <[email protected]>
  • Loading branch information
IvanMathy and jutiss authored Mar 16, 2021
1 parent 006e21f commit 75760ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Scripts/jsToPhp.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function main(state) {
const toPHP = function (value, indentation) {
switch (typeof value) {
case 'object':
value = convert(value, indentation + 1);
if(value !== null) {
value = convert(value, indentation + 1);
}
break;
case 'string':
value = value.replace(/"/g, '\\"');
Expand Down

0 comments on commit 75760ea

Please sign in to comment.