close handle properly
Fixes #870 Not any last poster (...)

Fixes #870 Not any last poster name in forumdisplay after splitting
a/some post(s)
fix: error message showthread.php?pid=x for deleted posts, refs #947

* showthread.php
  * added check if post with set pid exists before a thread with tid null is searched in the db
Apply changes from #927 directly
Merge pull request #934 from PirataNervo/fix-870

Fixes #870 Not any last poster name in forumdisplay after splitting a/some post(s) (master)
Merge pull request #951 from Nik101010/fix-947

fix: error message showthread.php?pid=x for deleted posts, refs #947
Merge pull request #673 from RageSmirk/patch-3

Close handle properly in captcha.php
Modifies #971 Database fetch_array() Inconsistency
Fixes #936 Wrong compatibility check for plugins
Merge pull request #1035 from PirataNervo/fix-936

Fixes #936 Wrong compatibility check for plugins
Fixes #369 LIMIT clause in session updates
Merge pull request #1037 from PirataNervo/fix-369

Fixes #369 LIMIT clause in session updates
Fixes #321 threadsperpage negative value SQL error

#321
Fixes #321 postsperpage negative value SQL error

#321
Merge pull request #1042 from PirataNervo/fix-321

Fixes #321 threadsperpage/postsperpage negative value SQL error