Bugsnag integration and some bugfixes in for cycles.

This commit is contained in:
Yuriy Pikhtarev 2017-05-24 01:23:28 +03:00
commit f7cc55b984
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
10 changed files with 39 additions and 25 deletions

View file

@ -398,7 +398,7 @@ if ($view === 'attachments') {
for ($i = 0, $iMax = count($attachments); $i < $iMax; $i++) {
$delete_box = '<input type="checkbox" name="delete_id_list[]" value="' . (int)$attachments[$i]['attach_id'] . '" />';
for ($j = 0, $iMax = count($delete_id_list); $j < $iMax; $j++) {
for ($j = 0, $jMax = count($delete_id_list); $j < $jMax; $j++) {
if ($delete_id_list[$j] == $attachments[$i]['attach_id']) {
$delete_box = '<input type="checkbox" name="delete_id_list[]" value="' . (int)$attachments[$i]['attach_id'] . '" checked="checked" />';
break;
@ -409,7 +409,7 @@ if ($view === 'attachments') {
// Is the Attachment assigned to more than one post ?
// If it's not assigned to any post, it's an private message thingy. ;)
$post_titles = array();
$post_titles = [];
$sql = "SELECT *
FROM " . BB_ATTACHMENTS . "