From 5907bba3fdb77f899c31c08afc9f0b894847374b Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 31 Mar 2022 11:18:03 +0200 Subject: Fix hook encryption with cron job Make sure the setup fs is set before using the Update service Fix #29674 Signed-off-by: Carl Schwan --- apps/files_sharing/lib/ExpireSharesJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/files_sharing/lib/ExpireSharesJob.php b/apps/files_sharing/lib/ExpireSharesJob.php index dd0979e4b0b..f5eb5856aea 100644 --- a/apps/files_sharing/lib/ExpireSharesJob.php +++ b/apps/files_sharing/lib/ExpireSharesJob.php @@ -85,7 +85,7 @@ class ExpireSharesJob extends TimedJob { ) ); - $shares = $qb->execute(); + $shares = $qb->executeQuery(); while ($share = $shares->fetch()) { if ((int)$share['share_type'] === IShare::TYPE_LINK) { $id = 'ocinternal'; -- cgit v1.2.3