]> source.dussan.org Git - nextcloud-server.git/commit
fix(share): Return empty string if no label is set
authorFerdinand Thiessen <opensource@fthiessen.de>
Sat, 12 Oct 2024 15:51:56 +0000 (17:51 +0200)
committerFerdinand Thiessen <opensource@fthiessen.de>
Mon, 14 Oct 2024 13:15:51 +0000 (15:15 +0200)
commit2e4d3e4e758f6344ccb8f8d63b70d11f6b31aca7
tree8328fefe4bc6ca579635babc8c62f8c4ef5f061a
parent3f75c4808d5153588c671c6a47c6aadb501f6308
fix(share): Return empty string if no label is set

* Resolves: https://github.com/nextcloud/server/issues/48629

While the database supports NULL, the typing has always said it only returns *string*.
So to not break any apps that might trust the typings we should return `''` if the database is set to `NULL`.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
lib/private/Share20/DefaultShareProvider.php
tests/lib/Share20/DefaultShareProviderTest.php