fix error: Call to undefined method calendar_ical::get_table_definitions()

This commit is contained in:
Ralf Becker 2019-01-24 09:07:54 +01:00
parent 098fcbf918
commit 1ed0fd898f

View File

@ -1776,7 +1776,7 @@ class Db
if ($cached_table !== $table || is_null($cached_columns)) if ($cached_table !== $table || is_null($cached_columns))
{ {
$db = isset($this) ? $this : $GLOBALS['egw']->db; $db = isset($this) && is_a($this, __CLASS__) ? $this : $GLOBALS['egw']->db;
$table_def = $db->get_table_definitions($app,$table); $table_def = $db->get_table_definitions($app,$table);
$cached_columns = is_array($table_def) ? $table_def['fd'] : false; $cached_columns = is_array($table_def) ? $table_def['fd'] : false;
} }