mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00: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
|
@ -32,13 +32,12 @@ function admin_post(&$a){
|
|||
|
||||
// do not allow a page manager to access the admin panel at all.
|
||||
|
||||
if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
|
||||
if (x($_SESSION,'submanage') && intval($_SESSION['submanage'])) {
|
||||
return;
|
||||
|
||||
|
||||
}
|
||||
|
||||
// urls
|
||||
if($a->argc > 1) {
|
||||
if ($a->argc > 1) {
|
||||
switch ($a->argv[1]){
|
||||
case 'site':
|
||||
admin_page_site_post($a);
|
||||
|
@ -134,8 +133,9 @@ function admin_content(&$a) {
|
|||
return login(false);
|
||||
}
|
||||
|
||||
if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
|
||||
if (x($_SESSION,'submanage') && intval($_SESSION['submanage'])) {
|
||||
return "";
|
||||
}
|
||||
|
||||
// APC deactivated, since there are problems with PHP 5.5
|
||||
//if (function_exists("apc_delete")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue