aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2015-03-21 19:12:43 +0100
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2015-03-21 22:28:07 +0100
commitdaed7fbeada3c781a6b5d7c8dd69d35733d93ef1 (patch)
tree371475dd0c3e4bda0c4062b5249c8a6f46da6229 /include/network.php
parent590df06556af29861d00ca2f417051fa2c21a7e6 (diff)
downloadvolse-hubzilla-daed7fbeada3c781a6b5d7c8dd69d35733d93ef1.tar.gz
volse-hubzilla-daed7fbeada3c781a6b5d7c8dd69d35733d93ef1.tar.bz2
volse-hubzilla-daed7fbeada3c781a6b5d7c8dd69d35733d93ef1.zip
Bugfix und variable initialization.
Fixed a wrong perm_is_allowed() parameter, commented some other places where we use variables that are not set and should not work.
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/network.php b/include/network.php
index 5912ad79d..6aefc0b30 100644
--- a/include/network.php
+++ b/include/network.php
@@ -32,8 +32,6 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
$ret = array('return_code' => 0, 'success' => false, 'header' => "", 'body' => "");
- $a = get_app();
-
$ch = @curl_init($url);
if(($redirects > 8) || (! $ch))
return false;
@@ -71,7 +69,6 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,
((x($opts,'novalidate') && intval($opts['novalidate'])) ? false : true));
-
$prx = get_config('system','proxy');
if(strlen($prx)) {
@curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
@@ -518,6 +515,7 @@ function allowed_email($email) {
function avatar_img($email) {
+ $avatar = array();
$a = get_app();
$avatar['size'] = 175;
@@ -527,10 +525,11 @@ function avatar_img($email) {
call_hooks('avatar_lookup', $avatar);
- if(! $avatar['success'])
+ if (! $avatar['success'])
$avatar['url'] = $a->get_baseurl() . '/' . get_default_profile_photo();
logger('Avatar: ' . $avatar['email'] . ' ' . $avatar['url'], LOGGER_DEBUG);
+
return $avatar['url'];
}