diff --git a/updateitem.php b/updateitem.php index 1380e3e..869448c 100644 --- a/updateitem.php +++ b/updateitem.php @@ -7,7 +7,7 @@ $from = $_POST['from']; require 'readfrom.php'; $id = $_POST['id']; -if (is_empty($_POST['asset_tag'])) { +if (is_empty($_POST['asset_tag']) && $from == 'assets') { sendError('Please fill in an asset tag.'); }