More appeasement of scrutinizer-ci

This commit is contained in:
Timothy Warren 2014-03-17 19:52:43 -04:00
parent 0ae237ab33
commit b6192e6c0a
2 changed files with 2 additions and 6 deletions

View File

@ -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));

View File

@ -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)