Commit 38ba9924 authored by Klaas Eikelboom's avatar Klaas Eikelboom
Browse files

Fixes issue #3, Cannot update a webform submission

parent 46da72d1
......@@ -34,7 +34,7 @@ class webform_civirules_trigger {
}
$db = db_query('SELECT * FROM {webform_civicrm_submissions_civirules_trigger} WHERE sid = :sid', array(':sid' => $this->submission->sid));
if (($row = $db->fetchAssoc()) && $row->trigger_fired) {
if (($row = $db->fetchAssoc()) && $row['trigger_fired']) {
// This submission did already fire a civirules trigger.
return;
}
......@@ -64,4 +64,4 @@ class webform_civirules_trigger {
}
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment