rafaelbrandao/Sistema-Corretor — comment on commit 99dc673ed327818e06de6038a33bdd44e64d9e99
File: application/views/v_score_list.php line 60
By rafaelbrandao:

You may return a string "erro" in case of error... but what about the next line when you use it to calculate something? You should at least return a number, so the count itself wouldn't break, like -1 (the sum of weights should always be positive).