summaryrefslogtreecommitdiffstats
path: root/lib/group/database.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-07-20 18:56:18 +0200
committerRobin Appelman <icewind@owncloud.com>2012-07-20 18:56:18 +0200
commitc9be9ab251681d96cfb620ca26778ba0005023d3 (patch)
tree9546e40b893abf3970ba7554edcf7829d782314d /lib/group/database.php
parent7152b8b4ee2f0d4de640868b614992e8aaf00803 (diff)
downloadnextcloud-server-c9be9ab251681d96cfb620ca26778ba0005023d3.tar.gz
nextcloud-server-c9be9ab251681d96cfb620ca26778ba0005023d3.zip
remove unused variables
Diffstat (limited to 'lib/group/database.php')
-rw-r--r--lib/group/database.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/group/database.php b/lib/group/database.php
index fb173665eb8..2770ec185c4 100644
--- a/lib/group/database.php
+++ b/lib/group/database.php
@@ -41,7 +41,6 @@
* Class for group management in a SQL Database (e.g. MySQL, SQLite)
*/
class OC_Group_Database extends OC_Group_Backend {
- private $userGroupCache=array();
/**
* @brief Try to create a new group
@@ -116,7 +115,7 @@ class OC_Group_Database extends OC_Group_Backend {
// No duplicate entries!
if( !$this->inGroup( $uid, $gid )){
$query = OC_DB::prepare( "INSERT INTO `*PREFIX*group_user` ( `uid`, `gid` ) VALUES( ?, ? )" );
- $result = $query->execute( array( $uid, $gid ));
+ $query->execute( array( $uid, $gid ));
return true;
}else{
return false;
@@ -133,7 +132,7 @@ class OC_Group_Database extends OC_Group_Backend {
*/
public function removeFromGroup( $uid, $gid ){
$query = OC_DB::prepare( "DELETE FROM *PREFIX*group_user WHERE uid = ? AND gid = ?" );
- $result = $query->execute( array( $uid, $gid ));
+ $query->execute( array( $uid, $gid ));
return true;
}