From f4e77296570dbd03c297b944aef0beb2a60f520c Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Wed, 11 Feb 2015 02:14:27 +0100 Subject: [PATCH] Make UserRightsProxy::addGroup/removeGroup return bool Required as of e0094618b577a82209b9cc52cd15dda5e1deb784 Change-Id: I0cf9d8ee3ef9796d47442baff12a6cf8ae425d37 --- includes/UserRightsProxy.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/UserRightsProxy.php b/includes/UserRightsProxy.php index 53c69d817a..3be5847320 100644 --- a/includes/UserRightsProxy.php +++ b/includes/UserRightsProxy.php @@ -211,6 +211,8 @@ class UserRightsProxy { /** * Replaces User::addUserGroup() * @param string $group + * + * @return bool */ function addGroup( $group ) { $this->db->insert( 'user_groups', @@ -220,11 +222,15 @@ class UserRightsProxy { ), __METHOD__, array( 'IGNORE' ) ); + + return true; } /** * Replaces User::removeUserGroup() * @param string $group + * + * @return bool */ function removeGroup( $group ) { $this->db->delete( 'user_groups', @@ -233,6 +239,8 @@ class UserRightsProxy { 'ug_group' => $group, ), __METHOD__ ); + + return true; } /** -- 2.20.1