From 4caf44a411be9f75e40ead9c523bfc9f359e0bbd Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Thu, 23 Aug 2012 09:36:24 +1200 Subject: [PATCH] FIXED: Coding style to conform correctly to standards. --- code/widgets/BlogManagementWidget.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/widgets/BlogManagementWidget.php b/code/widgets/BlogManagementWidget.php index 99dd1df..28ff314 100644 --- a/code/widgets/BlogManagementWidget.php +++ b/code/widgets/BlogManagementWidget.php @@ -22,8 +22,7 @@ class BlogManagementWidget extends Widget implements PermissionProvider { function CommentText() { - if(!class_exists('Comment')) - return false; + if(!class_exists('Comment')) return false; $unmoderatedcount = DB::query("SELECT COUNT(*) FROM \"Comment\" WHERE \"Moderated\"=0")->value(); if($unmoderatedcount == 1) { @@ -37,8 +36,7 @@ class BlogManagementWidget extends Widget implements PermissionProvider { function CommentLink() { - if(!Permission::check('BLOGMANAGEMENT') || !class_exists('Comment')) - return false; + if(!Permission::check('BLOGMANAGEMENT') || !class_exists('Comment')) return false; return "admin/comments"; }