Skip to content

Commit

Permalink
Fixes #3 Blank pages on older PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Starpaul20 committed Apr 8, 2015
1 parent a0d9521 commit c2655ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/plugins/avatargallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,12 @@ function avatargallery_usercp_submit()
global $db, $mybb, $lang, $plugins;
$lang->load("avatargallery");

if(!empty($mybb->get_input('gallery'))) // Gallery avatar
if(!empty($mybb->input['gallery'])) // Gallery avatar
{
require_once MYBB_ROOT."inc/functions_upload.php";
$avatar_error = "";

if(empty($mybb->get_input('avatar')))
if(empty($mybb->input['avatar']))
{
$avatar_error = $lang->error_noavatar;
}
Expand Down

0 comments on commit c2655ee

Please sign in to comment.