From b6192e6c0ae4184699bc1fb9d694a7d5e41ca7ad Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Mon, 17 Mar 2014 19:52:43 -0400 Subject: [PATCH] More appeasement of scrutinizer-ci --- classes/db_pdo.php | 6 +----- drivers/mysql/mysql_util.php | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/classes/db_pdo.php b/classes/db_pdo.php index 6175836..74645d4 100644 --- a/classes/db_pdo.php +++ b/classes/db_pdo.php @@ -166,11 +166,8 @@ abstract class DB_PDO extends PDO { $idents = (array) explode('.', $table); $segments = count($idents); - // Reference the last item in the split string - $last =& $idents[$segments - 1]; - // Quote the last item - $last = $this->_prefix($last); + $idents[$segments - 1] = $this->_prefix(end($idents)); // Rejoin $table = implode('.', $idents); @@ -481,7 +478,6 @@ abstract class DB_PDO extends PDO { $table = $this->quote_table($table); $fields = array_keys($data[0]); - $vals = array(); $sql = "INSERT INTO {$table} ("; $sql .= implode(',', $this->quote_ident($fields)); diff --git a/drivers/mysql/mysql_util.php b/drivers/mysql/mysql_util.php index c158558..9835278 100644 --- a/drivers/mysql/mysql_util.php +++ b/drivers/mysql/mysql_util.php @@ -19,7 +19,7 @@ * @package Query * @subpackage Drivers * @method array get_dbs() - * @method mixed driver_query(string $sql, bool $filtered_index) + * @method mixed driver_query(string $sql, bool $filtered_index=TRUE) * @method array get_system_tables() * @method array get_tables() * @method mixed query(string $sql)