]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Group.php
Avoid undefined index
[friendica.git] / src / Model / Group.php
index 28af7b045f0937482e9832f8c478cdd079138ae2..50a3affa19bcbca02e0047c76dbfdd2c3a7af307 100644 (file)
@@ -54,6 +54,19 @@ class Group extends BaseObject
                return $return;
        }
 
+       /**
+        * Update group information.
+        *
+        * @param  int    $id   Group ID
+        * @param  string $name Group name
+        *
+        * @return bool Was the update successful?
+        */
+       public static function update($id, $name)
+       {
+               return dba::update('group', ['name' => $name], ['id' => $id]);
+       }
+
        /**
         * @brief Get a list of group ids a contact belongs to
         *