Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

File &Line number in Mysql error

When we run a query like this
$result = $this->Context->Database->Select($sql, $this->Name, 'GetCommentBody', 'An error occurred while fetching the Comment Body information.');
it should also take __FILE__ and __LINE__ as arguments as well. __FILE__ tells you which file created this error and __LINE__ says where in the file it was generated.
so it should be $result = $this->Context->Database->Select($sql, $this->Name, 'GetCommentBody', 'An error occurred while fetching the Comment Body information.',__FILE__,'__LINE__);

when the error is displayed it should display the file and line number as well

Comments

  • How big is your mismatch, a difference of one? Unless defined elsewhere, zero will always be first thus causing an offset, no?
This discussion has been closed.