From e39ee83e0a1a211fb45bc502c1dfac30c1dd3df3 Mon Sep 17 00:00:00 2001 From: Carmine De Rosa Date: Mon, 5 Oct 2020 11:31:44 +0200 Subject: [PATCH] fix adv enabled --- blocks/advFormSubmit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/advFormSubmit.php b/blocks/advFormSubmit.php index 45d2abe..f9589aa 100755 --- a/blocks/advFormSubmit.php +++ b/blocks/advFormSubmit.php @@ -45,7 +45,8 @@ $q=mysqli_query($conn, "INSERT INTO advertisement VALUES(null, $uid, '".$order."', $ouid, '".addslashes(trim($_POST['full_name']))."', '".addslashes(trim($email))."', NOW(), '".addslashes(nl2br($_POST['text']))."', '".addslashes(trim($_POST['city']))."', '".addslashes(trim($_POST['contact_phone']))."', - '".addslashes(trim($_POST['contact_email']))."', $append, '".$_POST['type']."', 1, 1)"); + '".addslashes(trim($_POST['contact_email']))."', $append, '".$_POST['type']."', ". + ($_SESSION['AUTH']['id'] ? 1 : 0).", 1)"); echo "";