Update functions_admin.php

This commit is contained in:
Roman Kelesidis 2023-11-03 15:10:51 +07:00
parent ad6efdf747
commit 65781b90eb

View File

@ -220,7 +220,7 @@ function search_attachments($order_by, &$total_rows, $back_links = '')
if (!($result = DB()->sql_query($sql))) if (!($result = DB()->sql_query($sql)))
{ {
bb_die('Could not obtain list of matching users (searching for: ' . $search_author . ')'); bb_die('Could not obtain list of matching users (searching for: ' . $search_author . ')' . $back_links);
} }
$matching_userids = ''; $matching_userids = '';
@ -311,7 +311,7 @@ function search_attachments($order_by, &$total_rows, $back_links = '')
if (!($result = DB()->sql_query($sql))) if (!($result = DB()->sql_query($sql)))
{ {
bb_die('Could not query attachments #1'); bb_die('Could not query attachments #1' . $back_links);
} }
$attachments = DB()->sql_fetchrowset($result); $attachments = DB()->sql_fetchrowset($result);
@ -325,7 +325,7 @@ function search_attachments($order_by, &$total_rows, $back_links = '')
if (!($result = DB()->sql_query($total_rows_sql))) if (!($result = DB()->sql_query($total_rows_sql)))
{ {
bb_die('Could not query attachments #2'); bb_die('Could not query attachments #2' . $back_links);
} }
$total_rows = DB()->num_rows($result); $total_rows = DB()->num_rows($result);