Make UserRightsProxy::addGroup/removeGroup return bool
authorMarius Hoch <hoo@online.de>
Wed, 11 Feb 2015 01:14:27 +0000 (02:14 +0100)
committerMarius Hoch <hoo@online.de>
Wed, 11 Feb 2015 01:14:27 +0000 (02:14 +0100)
Required as of e0094618b577a82209b9cc52cd15dda5e1deb784

Change-Id: I0cf9d8ee3ef9796d47442baff12a6cf8ae425d37

includes/UserRightsProxy.php

index 53c69d8..3be5847 100644 (file)
@@ -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;
        }
 
        /**