mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 45962 via svnmerge from
svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.1 ........ r45962 | jshipman | 2007-11-29 16:47:51 +1300 (Thu, 29 Nov 2007) | 1 line content controller notice, hyperlink underlining ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46811 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
12a4b05367
commit
0aa4a1e71f
@ -144,7 +144,7 @@ class ContentController extends Controller {
|
||||
|
||||
// Remove all entries the can not be viewed by the current user
|
||||
// We might need to create a show in menu permission
|
||||
if($result) {
|
||||
if(isset($result)) {
|
||||
foreach($result as $page) {
|
||||
if($page->can('view')) {
|
||||
$visible[] = $page;
|
||||
|
Loading…
Reference in New Issue
Block a user