Commit 0bb29fc4 authored by theo lem's avatar theo lem
Browse files

Merge branch 'fix-105-removed-trailing-error' into 'master'

Fix trailing error

Closes #105

See merge request framasoft/framaforms!48
parents 066c0e17 07ffb32b
...@@ -231,6 +231,9 @@ function framaforms_block_view ($delta) { ...@@ -231,6 +231,9 @@ function framaforms_block_view ($delta) {
if(isset($matches[1])){ if(isset($matches[1])){
$nid = $matches[1] ? $matches[1] : NULL; $nid = $matches[1] ? $matches[1] : NULL;
} }
else {
$nid = NULL;
}
// generate content by block ID // generate content by block ID
switch($delta) { switch($delta) {
case 'framaforms_contact_form_block': case 'framaforms_contact_form_block':
......
Supports Markdown
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