sa2blv / SVXportal

A web portal for svxlink reflector
http://svxportal.sm2ampr.net/
19 stars 13 forks source link

Fix off by one recording count (length) #7

Closed sm0svx closed 4 years ago

sm0svx commented 4 years ago

The length returned from recording.php is wrong. For an empty directory it returns {"length":1}. If I look at your site it reports a length of 74 even though there only are 73 recordings. So, it seems it reports one too many recordings.

The faulty length cause an error printout in the javascript console. Don't know if it cause any other problems.

This patch will fix the problem.