Commit 30202e3f authored by webchick's avatar webchick
Browse files

Issue #2060819 by legolasbo: Remove Unused local variable from...

Issue #2060819 by legolasbo: Remove Unused local variable  from /core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php.
parent e57e17db
......@@ -81,7 +81,7 @@ public function __construct(PDO $connection, array $connection_options) {
// Attach one database for each registered prefix.
$prefixes = $this->prefixes;
foreach ($prefixes as $table => &$prefix) {
foreach ($prefixes as &$prefix) {
// Empty prefix means query the main database -- no need to attach anything.
if (!empty($prefix)) {
// Only attach the database once.
......@@ -180,7 +180,7 @@ public static function sqlFunctionIf($condition, $expr1, $expr2 = NULL) {
*/
public static function sqlFunctionGreatest() {
$args = func_get_args();
foreach ($args as $k => $v) {
foreach ($args as $v) {
if (!isset($v)) {
unset($args);
}
......@@ -297,7 +297,7 @@ public function mapConditionOperator($operator) {
}
public function nextId($existing_id = 0) {
$transaction = $this->startTransaction();
$this->startTransaction();
// We can safely use literal queries here instead of the slower query
// builder because if a given database breaks here then it can simply
// override nextId. However, this is unlikely as we deal with short strings
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment