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 "";