optimizations
This commit is contained in:
@@ -241,9 +241,7 @@ foreach ($loop_array as $rowcount => $primary_key) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// checks if this field requires a bs reference attached to it
|
// checks if this field requires a bs reference attached to it
|
||||||
$requires_bs_reference = isset($upload_blob_repo);
|
if (isset($upload_blob_repo))
|
||||||
|
|
||||||
if ($requires_bs_reference)
|
|
||||||
{
|
{
|
||||||
// get the most recent BLOB reference
|
// get the most recent BLOB reference
|
||||||
$bs_reference = PMA_File::getRecentBLOBReference();
|
$bs_reference = PMA_File::getRecentBLOBReference();
|
||||||
@@ -362,9 +360,10 @@ foreach ($query as $single_query) {
|
|||||||
if (! $result) {
|
if (! $result) {
|
||||||
$error_messages[] = PMA_DBI_getError();
|
$error_messages[] = PMA_DBI_getError();
|
||||||
} else {
|
} else {
|
||||||
if (@PMA_DBI_affected_rows()) {
|
if ($tmp = @PMA_DBI_affected_rows()) {
|
||||||
$total_affected_rows += @PMA_DBI_affected_rows();
|
$total_affected_rows += $tmp;
|
||||||
}
|
}
|
||||||
|
unset($tmp);
|
||||||
|
|
||||||
$insert_id = PMA_DBI_insert_id();
|
$insert_id = PMA_DBI_insert_id();
|
||||||
if ($insert_id != 0) {
|
if ($insert_id != 0) {
|
||||||
|
Reference in New Issue
Block a user