Fix db table reference; forward constructor argument (#4471)

This commit is contained in:
Thomas Bruederli 2015-02-03 17:26:03 +01:00
parent 948a68136d
commit 29645a4736
2 changed files with 2 additions and 2 deletions

View file

@ -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'];

View file

@ -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);
}