Skip to content

Commit

Permalink
check if default-data is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
gka committed Nov 15, 2018
1 parent cbd7b4a commit 095a930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/edit.php
Expand Up @@ -58,7 +58,7 @@ function editor_check_access() {
$chart->setType($workflows[$wfid]['default_type']);

$vis = Visualization::get($workflows[$wfid]['default_type']);
if ($vis && $vis['default-data']) {
if ($vis && !empty($vis['default-data'])) {
$chart->writeData($vis['default-data']);
}

Expand Down

0 comments on commit 095a930

Please sign in to comment.