From e079a930d2797d9e94cc2e1848e4634c43adb6ba Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Wed, 12 Apr 2017 17:03:36 -0400 Subject: Finished up Reed\'s suggestions --- dash/apply.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dash/apply.php') diff --git a/dash/apply.php b/dash/apply.php index 82eb5f4..3236d49 100644 --- a/dash/apply.php +++ b/dash/apply.php @@ -9,10 +9,10 @@ if ($adid < 1) fatal('No ad ID has been provided. You must have reached this pag $title = 'Apply / Bulletin'; require('header.php'); if (!empty($_POST['apply'])) { - $result = $db->query('SELECT id FROM responses WHERE adid = '.$adid.' AND uid = '.$b_user['id'].' LIMIT 1') or dash_fatal($db->error); + $result = $db->query('SELECT id FROM responses WHERE adid = '.$adid.' AND (uid = '.$b_user['id'].' OR matched = 1) LIMIT 1') or dash_fatal($db->error); if ($result->num_rows > 0) { $result->free(); - dash_fatal('You have already applied to this ad!', $b_config['base_url'].'dash/'); + dash_fatal('You have already applied to this ad or the provider has already selected someone for the task!', $b_config['base_url'].'dash/'); } $result->free(); $db->query('INSERT INTO responses (adid, uid, comment) VALUES ('.$adid.', '.$b_user['id'].', \''.$db->escape_string($_POST['comments']).'\')') or dash_fatal($db->error); @@ -48,7 +48,7 @@ else

Comments (Optional)

-

+

-- cgit v1.2.3