aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/avatar/driver/remote.php
diff options
context:
space:
mode:
authorWesley Fok <wesley.fok@yp.ca>2016-08-03 13:20:42 -0400
committerWesley Fok <wesley.fok@yp.ca>2016-08-03 13:20:42 -0400
commitba13832085bf05eb5ab19aeb9681b16c7a119df9 (patch)
tree7fb014aeb08e614fe060dfeede0ea05885ff4d7d /phpBB/phpbb/avatar/driver/remote.php
parent2081a7809540db661193be376c1220a2c21acff4 (diff)
parentf68820762b2d78bc26c59724a3dd98091bb3379b (diff)
downloadforums-ba13832085bf05eb5ab19aeb9681b16c7a119df9.tar
forums-ba13832085bf05eb5ab19aeb9681b16c7a119df9.tar.gz
forums-ba13832085bf05eb5ab19aeb9681b16c7a119df9.tar.bz2
forums-ba13832085bf05eb5ab19aeb9681b16c7a119df9.tar.xz
forums-ba13832085bf05eb5ab19aeb9681b16c7a119df9.zip
Merge remote-tracking branch 'upstream/3.1.x' into ticket/14638-3.1.x
Diffstat (limited to 'phpBB/phpbb/avatar/driver/remote.php')
-rw-r--r--phpBB/phpbb/avatar/driver/remote.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/avatar/driver/remote.php b/phpBB/phpbb/avatar/driver/remote.php
index 4b0ee3f06f..bec54897b2 100644
--- a/phpBB/phpbb/avatar/driver/remote.php
+++ b/phpBB/phpbb/avatar/driver/remote.php
@@ -36,8 +36,8 @@ class remote extends \phpbb\avatar\driver\driver
public function prepare_form($request, $template, $user, $row, &$error)
{
$template->assign_vars(array(
- 'AVATAR_REMOTE_WIDTH' => ((in_array($row['avatar_type'], array(AVATAR_REMOTE, $this->get_name(), 'remote'))) && $row['avatar_width']) ? $row['avatar_width'] : $request->variable('avatar_remote_width', 0),
- 'AVATAR_REMOTE_HEIGHT' => ((in_array($row['avatar_type'], array(AVATAR_REMOTE, $this->get_name(), 'remote'))) && $row['avatar_height']) ? $row['avatar_height'] : $request->variable('avatar_remote_width', 0),
+ 'AVATAR_REMOTE_WIDTH' => ((in_array($row['avatar_type'], array(AVATAR_REMOTE, $this->get_name(), 'remote'))) && $row['avatar_width']) ? $row['avatar_width'] : $request->variable('avatar_remote_width', ''),
+ 'AVATAR_REMOTE_HEIGHT' => ((in_array($row['avatar_type'], array(AVATAR_REMOTE, $this->get_name(), 'remote'))) && $row['avatar_height']) ? $row['avatar_height'] : $request->variable('avatar_remote_width', ''),
'AVATAR_REMOTE_URL' => ((in_array($row['avatar_type'], array(AVATAR_REMOTE, $this->get_name(), 'remote'))) && $row['avatar']) ? $row['avatar'] : '',
));