diff --git a/admin/admin.php b/admin/admin.php
index acee8e0..f7d9b88 100644
--- a/admin/admin.php
+++ b/admin/admin.php
@@ -1056,7 +1056,7 @@ function onChangeTerms(value)
0) {
// backup database before bulk binding
Database::backupArkDatabase();
@@ -1070,12 +1070,19 @@ function onChangeTerms(value)
Ark IDs have been minted successfully.
- ';
+ ';
Database::dbclose($noid);
// redirect to the page.
header("Location: admin.php?db=" . $_GET["db"]);
}
+ else if ($_SERVER["REQUEST_METHOD"] == "POST" && (empty($_POST['mint-number']) || $_POST['mint-number'] <= 0)) {
+ print '
+
+ Please enter a valid number to mint.
+
+ ';
+ }
?>
Minted Arks