Steemnova - error message on friend request

Words
142
Reading
1 min
Listen
Play
9y

Expected behavior

It should be possible to send friend requests to other players independent of the users language. A website should never display technical error messages to the users. (Even though it helped me find the bug in this case.)

Actual behavior

The backend returns an error saying that the language variable is not defined. Making it impossible to send a friend request to an user with another language.

How to reproduce

  1. Open Steemnova
  2. login
  3. go to the statistics page
  4. find a user from another country
  5. try to send a friend request to the user

(I'm german, if somebody wants to test it out )

Recording Of The Bug

image.png

Suggested Fix

In this line

$Friend_LNG = new Language($language);

should be replaced with

$Friend_LNG = new Language($row['lang']);

Also it should be considered to disable the debug error messages



Posted on Utopian.io - Rewarding Open Source Contributors

Steemnova - error message on friend request | Ecency