summaryrefslogtreecommitdiffstats
path: root/lib/private/subadmin.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-18 16:17:15 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-18 16:35:19 +0200
commitccf47f40aac167f25b7537b3819b99d6c59bc92e (patch)
tree3d6529319d53f269241c00d5ef5a15dc57aa91f8 /lib/private/subadmin.php
parent8cb0d97b1099561d7f9a059f3ba8105a2c719aab (diff)
downloadnextcloud-server-ccf47f40aac167f25b7537b3819b99d6c59bc92e.tar.gz
nextcloud-server-ccf47f40aac167f25b7537b3819b99d6c59bc92e.zip
Remove unused variables
* should make scrutinizer a lot more happy * reduces maybe memory footprint
Diffstat (limited to 'lib/private/subadmin.php')
-rw-r--r--lib/private/subadmin.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/subadmin.php b/lib/private/subadmin.php
index 10ef87bac18..ec4f9f3b899 100644
--- a/lib/private/subadmin.php
+++ b/lib/private/subadmin.php
@@ -43,7 +43,7 @@ class OC_SubAdmin{
*/
public static function createSubAdmin($uid, $gid) {
$stmt = OC_DB::prepare('INSERT INTO `*PREFIX*group_admin` (`gid`,`uid`) VALUES(?,?)');
- $result = $stmt->execute(array($gid, $uid));
+ $stmt->execute(array($gid, $uid));
OC_Hook::emit( "OC_SubAdmin", "post_createSubAdmin", array( "gid" => $gid ));
return true;
}
@@ -56,7 +56,7 @@ class OC_SubAdmin{
*/
public static function deleteSubAdmin($uid, $gid) {
$stmt = OC_DB::prepare('DELETE FROM `*PREFIX*group_admin` WHERE `gid` = ? AND `uid` = ?');
- $result = $stmt->execute(array($gid, $uid));
+ $stmt->execute(array($gid, $uid));
OC_Hook::emit( "OC_SubAdmin", "post_deleteSubAdmin", array( "gid" => $gid ));
return true;
}
@@ -177,7 +177,7 @@ class OC_SubAdmin{
*/
public static function post_deleteUser($parameters) {
$stmt = OC_DB::prepare('DELETE FROM `*PREFIX*group_admin` WHERE `uid` = ?');
- $result = $stmt->execute(array($parameters['uid']));
+ $stmt->execute(array($parameters['uid']));
return true;
}
@@ -188,7 +188,7 @@ class OC_SubAdmin{
*/
public static function post_deleteGroup($parameters) {
$stmt = OC_DB::prepare('DELETE FROM `*PREFIX*group_admin` WHERE `gid` = ?');
- $result = $stmt->execute(array($parameters['gid']));
+ $stmt->execute(array($parameters['gid']));
return true;
}
}