AttorneyOnline / tsuserver3

An Attorney Online server.
GNU Affero General Public License v3.0
25 stars 51 forks source link

Prevent index error #153

Closed caleb-mabry closed 3 years ago

caleb-mabry commented 3 years ago

Fixes #101

The issue was that the evidence number didn't exist within the clients evidence list. By checking to see if the evidence exists in the client list, we can prevent it from throwing an index error if someone deletes the evidence on their end.

We set it to 0 because the evidence list for a client, when empty, contains the number 0. [0]

Short and sweet!