1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Issue #4283 - Update deprecated sql method usage. Removed old code.

This commit is contained in:
Cameron
2020-12-17 05:52:54 -08:00
parent 8c0e2c0392
commit 42f0e902d4
42 changed files with 76 additions and 3627 deletions

View File

@@ -1137,7 +1137,7 @@ if ($writeBanFile)
// Edit modes - get existing entry
if ($action == 'edit' || $action == 'whedit')
{
$sql->db_Select('banlist', '*', "banlist_ip='{$sub_action}'");
$sql->select('banlist', '*', "banlist_ip='{$sub_action}'");
$row = $sql->fetch();
extract($row); //FIXME - kill extract()
}
@@ -1695,7 +1695,7 @@ switch ($action)
$filter = ($action == 'white') ? 'banlist_bantype='.eIPHandler::BAN_TYPE_WHITELIST : 'banlist_bantype!='.eIPHandler::BAN_TYPE_WHITELIST;
if(!$ban_total = $sql->db_Select("banlist", "*", $filter." ORDER BY banlist_ip"))
if(!$ban_total = $sql->select("banlist", "*", $filter." ORDER BY banlist_ip"))
{
//$text .= "<div class='center'>".$no_values[$action]."</div>";
$mes->addInfo($no_values[$action]);