From 25957988337f449ff26be7b8f5bacc950c5b4ebd Mon Sep 17 00:00:00 2001 From: Mark Stephens Date: Thu, 18 Feb 2010 03:50:48 +0000 Subject: [PATCH] BUGFIX: batch_permission_check returns null rather than empty array when user has no permissions git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99443 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SiteTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index eeeed9ebf..656b30823 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1101,7 +1101,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid }*/ return $combinedStageResult; } else { - array(); + return array(); } }