Fix some errors
parent
a6ef3ac9bf
commit
bd89c9d355
|
@ -13,7 +13,7 @@ trait FoldersTrait
|
|||
/**
|
||||
* Get subfolders entry for days response.
|
||||
*/
|
||||
public function getSubfoldersEntry(Folder &$folder)
|
||||
public function getSubfoldersEntry(Folder $folder)
|
||||
{
|
||||
// Ugly: get the view of the folder with reflection
|
||||
// This is unfortunately the only way to get the contents of a folder
|
||||
|
|
|
@ -295,7 +295,9 @@ trait TimelineQueryDays
|
|||
$types = $query->getParameterTypes();
|
||||
|
||||
// Get SQL
|
||||
$CTE_SQL = $params['cteFoldersArchive'] ? CTE_FOLDERS_ARCHIVE : CTE_FOLDERS;
|
||||
$CTE_SQL = \array_key_exists('cteFoldersArchive', $params) && $params['cteFoldersArchive']
|
||||
? CTE_FOLDERS_ARCHIVE
|
||||
: CTE_FOLDERS;
|
||||
|
||||
// Add WITH clause if needed
|
||||
if (false !== strpos($sql, 'cte_folders')) {
|
||||
|
|
Loading…
Reference in New Issue