aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorTobias Hößl <tobias@hoessl.eu>2012-02-28 21:56:42 +0000
committerTobias Hößl <tobias@hoessl.eu>2012-02-28 21:56:42 +0000
commit5bb8ed4b8b5310acc8556ef2fba7b3958284b2a6 (patch)
tree6f15b4cff6c76ee7f93b4e50f28142b3eaee5007 /mod/network.php
parent3d249f0eddb058f74b33d8205202b17ab7555aa6 (diff)
downloadvolse-hubzilla-5bb8ed4b8b5310acc8556ef2fba7b3958284b2a6.tar.gz
volse-hubzilla-5bb8ed4b8b5310acc8556ef2fba7b3958284b2a6.tar.bz2
volse-hubzilla-5bb8ed4b8b5310acc8556ef2fba7b3958284b2a6.zip
Mostly some checks in order to avoid Notices; 1 real bugfix in /mod/network.php
Diffstat (limited to 'mod/network.php')
-rwxr-xr-xmod/network.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/mod/network.php b/mod/network.php
index 03a671b61..26265f5a0 100755
--- a/mod/network.php
+++ b/mod/network.php
@@ -44,7 +44,7 @@ function network_init(&$a) {
}
$a->page['aside'] .= group_side('network','network',true,$group_id);
- $a->page['aside'] .= networks_widget($a->get_baseurl() . '/network',(($_GET['nets']) ? $_GET['nets'] : ''));
+ $a->page['aside'] .= networks_widget($a->get_baseurl() . '/network',(x($_GET, 'nets') ? $_GET['nets'] : ''));
$a->page['aside'] .= saved_searches($search);
}
@@ -130,15 +130,15 @@ function network_content(&$a, $update = 0) {
$starred_active = 'active';
}
- if($_GET['bmark']) {
+ if(x($_GET,'bmark')) {
$bookmarked_active = 'active';
}
- if($_GET['conv']) {
+ if(x($_GET,'conv')) {
$conv_active = 'active';
}
- if($_GET['spam']) {
+ if(x($_GET,'spam')) {
$spam_active = 'active';
}
@@ -245,7 +245,7 @@ function network_content(&$a, $update = 0) {
$def_acl = array('allow_cid' => '<' . intval($cid) . '>');
if(! $update) {
- if(group) {
+ if($group) {
if(($t = group_public_members($group)) && (! get_pconfig(local_user(),'system','nowarn_insecure'))) {
notice( sprintf( tt('Warning: This group contains %s member from an insecure network.',
'Warning: This group contains %s members from an insecure network.',
@@ -492,7 +492,9 @@ function network_content(&$a, $update = 0) {
$items = conv_sort($items,$ordering);
- }
+ } else {
+ $items = array();
+ }
}