Skip to content

Commit

Permalink
Fix undefined error, and note that this code really needs to be clean…
Browse files Browse the repository at this point in the history
…ed up
  • Loading branch information
slusarz committed Jul 25, 2014
1 parent 4a0538a commit a190a77
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion turba/data.php
Expand Up @@ -383,7 +383,12 @@ function _emptyAttributeFilter($var)
}
}

$storage = $data->storage;
// @todo: These variables are needed for stuff that is in *Horde*, not Turba.
// That's not correct.
if ($data) {
$storage = $data->storage;
}

foreach ($templates[$next_step] as $template) {
require $template;
}
Expand Down

0 comments on commit a190a77

Please sign in to comment.