From 399aec140e025e83195e583eeac2c64fca36b0d8 Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Wed, 18 Sep 2019 18:53:44 -0400 Subject: [PATCH] Fixed Blank item added when clicking save in recurring invoice --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 57926952..0e45e275 100644 --- a/post.php +++ b/post.php @@ -2004,7 +2004,7 @@ if(isset($_POST['save_recurring'])){ $recurring_id = intval($_POST['recurring_id']); - if(isset($_POST['name'])){ + if(!empty($_POST['name'])){ $name = strip_tags(mysqli_real_escape_string($mysqli,$_POST['name'])); $description = strip_tags(mysqli_real_escape_string($mysqli,$_POST['description'])); $qty = floatval($_POST['qty']);