Skip to content

Commit

Permalink
Not passing null values down to array_slice
Browse files Browse the repository at this point in the history
Fixes #10
  • Loading branch information
marzojr committed Feb 15, 2024
1 parent af2fc64 commit dfcb5ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion seventowers/code.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
* TYPE = 0 | 1 (default: 0)
*/

parse_str(implode('&', array_slice($argv, 1)), $PARAMETERS);
if (is_array($argv))
parse_str(implode('&', array_slice($argv, 1)), $PARAMETERS);

if (!isset($PARAMETERS["TITLE_IMAGE"]))
$PARAMETERS["TITLE_IMAGE"] = "usecodetitle.png";

Expand Down

0 comments on commit dfcb5ab

Please sign in to comment.