@@ -775,19 +775,19 @@ public function createShare(
775775 $ share ->setPermissions ($ permissions );
776776 } elseif ($ shareType === IShare::TYPE_ROOM ) {
777777 try {
778- $ this ->getRoomShareHelper ()->createShare ($ share , $ shareWith , $ permissions , $ expireDate );
778+ $ this ->getRoomShareHelper ()->createShare ($ share , $ shareWith , $ permissions , $ expireDate ?? '' );
779779 } catch (QueryException $ e ) {
780780 throw new OCSForbiddenException ($ this ->l ->t ('Sharing %s failed because the back end does not support room shares ' , [$ node ->getPath ()]));
781781 }
782782 } elseif ($ shareType === IShare::TYPE_DECK ) {
783783 try {
784- $ this ->getDeckShareHelper ()->createShare ($ share , $ shareWith , $ permissions , $ expireDate );
784+ $ this ->getDeckShareHelper ()->createShare ($ share , $ shareWith , $ permissions , $ expireDate ?? '' );
785785 } catch (QueryException $ e ) {
786786 throw new OCSForbiddenException ($ this ->l ->t ('Sharing %s failed because the back end does not support room shares ' , [$ node ->getPath ()]));
787787 }
788788 } elseif ($ shareType === IShare::TYPE_SCIENCEMESH ) {
789789 try {
790- $ this ->getSciencemeshShareHelper ()->createShare ($ share , $ shareWith , $ permissions , $ expireDate );
790+ $ this ->getSciencemeshShareHelper ()->createShare ($ share , $ shareWith , $ permissions , $ expireDate ?? '' );
791791 } catch (QueryException $ e ) {
792792 throw new OCSForbiddenException ($ this ->l ->t ('Sharing %s failed because the back end does not support ScienceMesh shares ' , [$ node ->getPath ()]));
793793 }
0 commit comments