Fix PHP Fatal error: Call to a member function get_hierarchy_delimiter() on a non-object (T1252)

This commit is contained in:
Aleksander Machniak 2016-05-04 10:40:49 +02:00
parent db3ffe7106
commit dec774fc73

View file

@ -964,6 +964,10 @@ class kolab_storage
*/
public static function folder_hierarchy($folders, &$tree = null)
{
if (!self::setup()) {
return array();
}
$_folders = array();
$delim = self::$imap->get_hierarchy_delimiter();
$other_ns = rtrim(self::namespace_root('other'), $delim);