summaryrefslogtreecommitdiff
path: root/dash/apply.php
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2017-02-23 18:24:01 -0500
committerCarson Fleming <cflems@cflems.net>2017-02-23 18:24:01 -0500
commit117d7a7ce83dbcf749c88201cd46a3e10efc899b (patch)
tree0937bf274a77984bae213d37be9b9ee531d06a73 /dash/apply.php
parentb13221d3d3c98912e130c33c725d7274cda5b27d (diff)
downloadbulletin-117d7a7ce83dbcf749c88201cd46a3e10efc899b.tar.gz
When an ad receives a response, create a hook which emails the poster
Diffstat (limited to 'dash/apply.php')
-rw-r--r--dash/apply.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/dash/apply.php b/dash/apply.php
index ab2652c..d60700e 100644
--- a/dash/apply.php
+++ b/dash/apply.php
@@ -12,7 +12,9 @@ if (!empty($_POST['apply'])) {
$result->free();
dash_fatal('You have already applied to this ad!', $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);
+ app_trigger($db->insert_id);
dash_fatal('Your application has been submitted.', $b_config['base_url'].'dash/');
}