Set quantity to default to 1
This commit is contained in:
parent
88ff02a5e1
commit
ad8786da00
|
@ -99,7 +99,10 @@ function add_requirement() {
|
||||||
function deposit(){
|
function deposit(){
|
||||||
global $command_list;
|
global $command_list;
|
||||||
$item_id = $command_list[1];
|
$item_id = $command_list[1];
|
||||||
|
$quantity = 1;
|
||||||
|
if (isset($command_list[2])){
|
||||||
$quantity = $command_list[2];
|
$quantity = $command_list[2];
|
||||||
|
}
|
||||||
|
|
||||||
$mysql = require('mysql_credentials.php');
|
$mysql = require('mysql_credentials.php');
|
||||||
$conn = new mysqli($mysql['servername'], $mysql['username'], $mysql['password'], $mysql['database']);
|
$conn = new mysqli($mysql['servername'], $mysql['username'], $mysql['password'], $mysql['database']);
|
||||||
|
|
Loading…
Reference in New Issue