FIXED: Coding style to conform correctly to standards.

This commit is contained in:
Damian Mooyman 2012-08-23 09:36:24 +12:00
parent f9620de394
commit 4caf44a411

View File

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