mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Updated
This commit is contained in:
parent
22db50889c
commit
9ecc26b048
2 changed files with 5 additions and 5 deletions
|
@ -68,7 +68,7 @@ class Html
|
||||||
foreach ($params as $opt_name => $opt_val) {
|
foreach ($params as $opt_name => $opt_val) {
|
||||||
$opt_name = rtrim($opt_name);
|
$opt_name = rtrim($opt_name);
|
||||||
|
|
||||||
if (\is_array($opt_val)) {
|
if (is_array($opt_val)) {
|
||||||
$this->cur_attr =& $this->cur_attr[$opt_name];
|
$this->cur_attr =& $this->cur_attr[$opt_name];
|
||||||
|
|
||||||
$label = str_short(htmlCHR($opt_name), $this->max_length);
|
$label = str_short(htmlCHR($opt_name), $this->max_length);
|
||||||
|
@ -114,7 +114,7 @@ class Html
|
||||||
public function _array2html_rec($array, $ul, $li)
|
public function _array2html_rec($array, $ul, $li)
|
||||||
{
|
{
|
||||||
foreach ($array as $k => $v) {
|
foreach ($array as $k => $v) {
|
||||||
if (\is_array($v)) {
|
if (is_array($v)) {
|
||||||
$this->out .= "<$li><span class=\"b\">$k</span><$ul>";
|
$this->out .= "<$li><span class=\"b\">$k</span><$ul>";
|
||||||
$this->_array2html_rec($v, $ul, $li);
|
$this->_array2html_rec($v, $ul, $li);
|
||||||
$this->out .= "</$ul></$li>";
|
$this->out .= "</$ul></$li>";
|
||||||
|
|
|
@ -24,7 +24,7 @@ class Group
|
||||||
{
|
{
|
||||||
global $datastore;
|
global $datastore;
|
||||||
|
|
||||||
if (\is_array($user_id)) {
|
if (is_array($user_id)) {
|
||||||
$user_id = implode(',', $user_id);
|
$user_id = implode(',', $user_id);
|
||||||
}
|
}
|
||||||
$user_groups_in = ($user_id !== 'all') ? "AND ug.user_id IN($user_id)" : '';
|
$user_groups_in = ($user_id !== 'all') ? "AND ug.user_id IN($user_id)" : '';
|
||||||
|
@ -219,7 +219,7 @@ class Group
|
||||||
*/
|
*/
|
||||||
public static function store_permissions($group_id, $auth_ary)
|
public static function store_permissions($group_id, $auth_ary)
|
||||||
{
|
{
|
||||||
if (empty($auth_ary) || !\is_array($auth_ary)) {
|
if (empty($auth_ary) || !is_array($auth_ary)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ class Group
|
||||||
*/
|
*/
|
||||||
private static function update_user_permissions($user_id = 'all')
|
private static function update_user_permissions($user_id = 'all')
|
||||||
{
|
{
|
||||||
if (\is_array($user_id)) {
|
if (is_array($user_id)) {
|
||||||
$user_id = implode(',', $user_id);
|
$user_id = implode(',', $user_id);
|
||||||
}
|
}
|
||||||
$delete_in = ($user_id !== 'all') ? " WHERE user_id IN($user_id)" : '';
|
$delete_in = ($user_id !== 'all') ? " WHERE user_id IN($user_id)" : '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue