bugfixed for Nextcloud 13

This commit is contained in:
Horst Knorr
2018-01-28 14:41:28 +01:00
parent 2e1179e035
commit 396c9f0968
3 changed files with 6 additions and 6 deletions

View File

@@ -21,13 +21,13 @@ class OC_GROUP_SQL extends \OC_Group_Backend implements \OCP\GroupInterface
public function getUserGroups($uid) { public function getUserGroups($uid) {
if(empty($this -> settings['sql_group_table'])) if(empty($this -> settings['sql_group_table']))
{ {
\OCP\Util::writeLog('OC_USER_SQL', "Group table not configured", \OCP\Util::DEBUG); Util::writeLog('OC_USER_SQL', "Group table not configured", Util::DEBUG);
return []; return [];
} }
$rows = $this -> helper -> runQuery('getUserGroups', array('uid' => $uid), false, true); $rows = $this -> helper -> runQuery('getUserGroups', array('uid' => $uid), false, true);
if($rows === false) if($rows === false)
{ {
\OCP\Util::writeLog('OC_USER_SQL', "Found no group", \OCP\Util::DEBUG); Util::writeLog('OC_USER_SQL', "Found no group", Util::DEBUG);
return []; return [];
} }
$groups = array(); $groups = array();
@@ -60,13 +60,13 @@ class OC_GROUP_SQL extends \OC_Group_Backend implements \OCP\GroupInterface
public function usersInGroup($gid, $search = '', $limit = null, $offset = null) { public function usersInGroup($gid, $search = '', $limit = null, $offset = null) {
if(empty($this -> settings['sql_group_table'])) if(empty($this -> settings['sql_group_table']))
{ {
\OCP\Util::writeLog('OC_USER_SQL', "Group table not configured", \OCP\Util::DEBUG); Util::writeLog('OC_USER_SQL', "Group table not configured", Util::DEBUG);
return []; return [];
} }
$rows = $this -> helper -> runQuery('getGroupUsers', array('gid' => $gid), false, true); $rows = $this -> helper -> runQuery('getGroupUsers', array('gid' => $gid), false, true);
if($rows === false) if($rows === false)
{ {
\OCP\Util::writeLog('OC_USER_SQL', "Found no users for group", \OCP\Util::DEBUG); Util::writeLog('OC_USER_SQL', "Found no users for group", Util::DEBUG);
return []; return [];
} }
$users = array(); $users = array();

View File

@@ -1,7 +1,7 @@
<?php <?php
/** /**
* ownCloud - user_sql * nextCloud - user_sql
* *
* @author Andreas Böhler and contributors * @author Andreas Böhler and contributors
* @copyright 2012-2015 Andreas Böhler <dev (at) aboehler (dot) at> * @copyright 2012-2015 Andreas Böhler <dev (at) aboehler (dot) at>

View File

@@ -1,7 +1,7 @@
<?php <?php
/** /**
* ownCloud - user_sql * nextCloud - user_sql
* *
* @author Andreas Böhler and contributors * @author Andreas Böhler and contributors
* @copyright 2012-2015 Andreas Böhler <dev (at) aboehler (dot) at> * @copyright 2012-2015 Andreas Böhler <dev (at) aboehler (dot) at>