Commit 375aeb27 authored by Malcolm Blaney's avatar Malcolm Blaney

Cart module added 'cart-unavailable' class to shutdown message for

styling. Stock module fixed a bug where prices were updated from
base_price but percent was set to 0, which is used elsewhere to
mean no markup applied. Account module fixed a few bugs sharing
information when there wasn't permission to edit it. Also
refactored some more code out of Callback function.
Other changes are from renaming return value from mysqli queries to
$mysqli_result due to conflict with $result variable which is also
used for other purposes.
parent 99c35ffb
Pipeline #43534236 passed with stage
in 1 minute and 16 seconds
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -92,8 +92,8 @@ else {
}
$password = $mysqli->escape_string(password_hash('admin', PASSWORD_DEFAULT));
$query = 'INSERT INTO users VALUES ("admin", "' . $password . '", "", ' .
'"admin", 1, "", ' . time() . ', "", 1)';
$query = 'INSERT INTO users VALUES ("admin", "' . $password . '", "", "", ' .
'1, "", ' . time() . ', "", 1)';
if (!$mysqli->query($query)) {
log_db('start insert user: ' . $mysqli->error);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment