Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Moelleken committed Jun 10, 2016
2 parents b9ac386 + bd02602 commit a2eaf5e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/voku/db/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function getDbFields($table, $useStaticCache = true, DB $db = null
$db = DB::getInstance();
}

$sql = "SHOW COLUMNS FROM `" . $db->escape($table) . "`";
$sql = 'SHOW COLUMNS FROM `' . $db->escape($table) . '`';
$result = $db->query($sql);

if ($result && $result->num_rows > 0) {
Expand Down Expand Up @@ -82,10 +82,10 @@ public static function copyTableRow($table, array $whereArray, array $updateArra
}

// get the row
$query = "SELECT * FROM " . $table . "
$query = 'SELECT * FROM ' . $table . '
WHERE 1 = 1
" . $whereSQL . "
";
' . $whereSQL . '
';
$result = $db->query($query);

// make sure the row exists
Expand Down Expand Up @@ -118,9 +118,9 @@ public static function copyTableRow($table, array $whereArray, array $updateArra
}

// insert the "copied" row
$new_query = "INSERT INTO `" . $table . "` (" . ltrim($insert_keys, ',') . ")
VALUES (" . ltrim($insert_values, ',') . ")
";
$new_query = 'INSERT INTO `' . $table . '` (' . ltrim($insert_keys, ',') . ')
VALUES (' . ltrim($insert_values, ',') . ')
';
$return = $db->query($new_query, $bindings);
}
}
Expand Down

0 comments on commit a2eaf5e

Please sign in to comment.