mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Coding convention:
- added curly braces - added space between "if" and brace Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
5a90e7f822
commit
a5e4882e25
11 changed files with 85 additions and 53 deletions
|
@ -17,8 +17,9 @@ function delegate_content(&$a) {
|
|||
|
||||
// delegated admins can view but not change delegation permissions
|
||||
|
||||
if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
|
||||
if (x($_SESSION,'submanage') && intval($_SESSION['submanage'])) {
|
||||
goaway(App::get_baseurl() . '/delegate');
|
||||
}
|
||||
|
||||
|
||||
$id = $a->argv[2];
|
||||
|
@ -45,8 +46,9 @@ function delegate_content(&$a) {
|
|||
|
||||
// delegated admins can view but not change delegation permissions
|
||||
|
||||
if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
|
||||
if (x($_SESSION,'submanage') && intval($_SESSION['submanage'])) {
|
||||
goaway(App::get_baseurl() . '/delegate');
|
||||
}
|
||||
|
||||
q("delete from manage where uid = %d and mid = %d limit 1",
|
||||
intval($a->argv[2]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue