Skip to content

Commit

Permalink
null value passing
Browse files Browse the repository at this point in the history
  • Loading branch information
rlt3 committed Oct 24, 2012
1 parent 1fc9ac7 commit 9086aa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion barcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ private static function randomCode()
}
}

new Barcode($_GET['code']);
$number = (isset($_GET['code'])) ? $_GET['code'] : null;
new Barcode($number);

0 comments on commit 9086aa4

Please sign in to comment.