Fix db table reference; forward constructor argument (#4471)
This commit is contained in:
parent
948a68136d
commit
29645a4736
2 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ class kolab_storage_cache
|
|||
*/
|
||||
public function select_by_id($folder_id)
|
||||
{
|
||||
$sql_arr = $this->db->fetch_assoc($this->db->query("SELECT * FROM `{$this->cache_table}` WHERE `folder_id` = ?", $folder_id));
|
||||
$sql_arr = $this->db->fetch_assoc($this->db->query("SELECT * FROM `{$this->folders_table}` WHERE `folder_id` = ?", $folder_id));
|
||||
if ($sql_arr) {
|
||||
$this->metadata = $sql_arr;
|
||||
$this->folder_id = $sql_arr['folder_id'];
|
||||
|
|
|
@ -51,7 +51,7 @@ class kolab_storage_folder extends kolab_storage_folder_api
|
|||
{
|
||||
parent::__construct($name);
|
||||
$this->imap->set_options(array('skip_deleted' => true));
|
||||
$this->set_folder($name, $type);
|
||||
$this->set_folder($name, $type, $type_annotation);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue