Fix PHP Fatal error: Call to a member function get_hierarchy_delimiter() on a non-object (T1252)
This commit is contained in:
parent
d85be556c2
commit
bb1dfa9c10
1 changed files with 4 additions and 0 deletions
|
@ -1012,6 +1012,10 @@ class kolab_storage
|
||||||
*/
|
*/
|
||||||
public static function folder_hierarchy($folders, &$tree = null)
|
public static function folder_hierarchy($folders, &$tree = null)
|
||||||
{
|
{
|
||||||
|
if (!self::setup()) {
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
$_folders = array();
|
$_folders = array();
|
||||||
$delim = self::$imap->get_hierarchy_delimiter();
|
$delim = self::$imap->get_hierarchy_delimiter();
|
||||||
$other_ns = rtrim(self::namespace_root('other'), $delim);
|
$other_ns = rtrim(self::namespace_root('other'), $delim);
|
||||||
|
|
Loading…
Add table
Reference in a new issue