mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Some cleanup for attach mod (#1250)
* Some cleanup for attach mod * Update displaying.php * Update CHANGELOG.md
This commit is contained in:
parent
65c7903b21
commit
94f1641b5c
10 changed files with 45 additions and 179 deletions
|
@ -499,7 +499,7 @@ if ($add_forum && $e_mode == 'perm' && $group) {
|
|||
|
||||
$auth_bitstream = auth_pack($auth_p);
|
||||
|
||||
$sql = 'UPDATE ' . BB_EXTENSION_GROUPS . " SET forum_permissions = '" . attach_mod_sql_escape($auth_bitstream) . "' WHERE group_id = " . (int)$group;
|
||||
$sql = 'UPDATE ' . BB_EXTENSION_GROUPS . " SET forum_permissions = '" . DB()->escape($auth_bitstream) . "' WHERE group_id = " . (int)$group;
|
||||
|
||||
if (!($result = DB()->sql_query($sql))) {
|
||||
bb_die('Could not update permissions #2');
|
||||
|
@ -536,7 +536,7 @@ if ($delete_forum && $e_mode == 'perm' && $group) {
|
|||
|
||||
$auth_bitstream = (count($auth_p) > 0) ? auth_pack($auth_p) : '';
|
||||
|
||||
$sql = 'UPDATE ' . BB_EXTENSION_GROUPS . " SET forum_permissions = '" . attach_mod_sql_escape($auth_bitstream) . "' WHERE group_id = " . (int)$group;
|
||||
$sql = 'UPDATE ' . BB_EXTENSION_GROUPS . " SET forum_permissions = '" . DB()->escape($auth_bitstream) . "' WHERE group_id = " . (int)$group;
|
||||
|
||||
if (!($result = DB()->sql_query($sql))) {
|
||||
bb_die('Could not update permissions #3');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue