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:
Andrew O'Neil 2007-12-13 22:31:58 +00:00
parent 12a4b05367
commit 0aa4a1e71f

View File

@ -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;