Skip to content

Commit

Permalink
Fixed extra bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Mar 20, 2020
1 parent 7d29216 commit fe97883
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions system/lib-user.php
Expand Up @@ -449,11 +449,12 @@ function USER_getPhoto($uid = 0, $photo = '', $email = '', $width = 0, $cssClass
if (empty($email)) {
$email = $_USER['email'];
}
if (!empty($_USER['photo']) && (empty($photo))) {
if (!empty($_USER['photo']) && empty($photo)) {
$photo = $_USER['photo'];
}
}
if ((empty($photo) || (empty($email) && $_CONF['use_gravatar'])) {

if (empty($photo) || (empty($email) && $_CONF['use_gravatar'])) {
$result = DB_query("SELECT email,photo FROM {$_TABLES['users']} WHERE uid = '{$uid}'");
list($newEmail, $newPhoto) = DB_fetchArray($result);
if (empty($photo)) {
Expand Down

0 comments on commit fe97883

Please sign in to comment.