Permalink
Browse files

Re-fixed log-table creation for unexisting tables

  • Loading branch information...
tvannini committed Dec 28, 2018
1 parent f7827bb commit 51cd106cbadca5f9ea4da7400162bc621378f615
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/jxapp.inc
@@ -715,10 +715,15 @@ class o2_app {
if ($this->tables_log && count($this->logged_tabs)) {
foreach ($this->logged_tabs as $tab_name => $log_level) {
if ($tab_name) {
if ($tab_obj = $this->get_table($tab_name)) {
try {
$tab_obj = $this->get_table($tab_name);
$tab_obj->log_level = $log_level;
$tab_obj->create_logtable($this->tables_create);
}
catch (o2_exception $o2e) {
o2_exception::warning("Unknown table <i>".$tab_name.
"</i> requested for log-table creation.");
}
}
}
}

0 comments on commit 51cd106

Please sign in to comment.