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)