use array_fill()
This commit is contained in:
@@ -190,9 +190,7 @@ if (isset($primary_key)) {
|
|||||||
// no primary key given, just load first row - but what happens if tbale is empty?
|
// no primary key given, just load first row - but what happens if tbale is empty?
|
||||||
$insert_mode = true;
|
$insert_mode = true;
|
||||||
$result = PMA_DBI_query('SELECT * FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table) . ' LIMIT 1;', null, PMA_DBI_QUERY_STORE);
|
$result = PMA_DBI_query('SELECT * FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table) . ' LIMIT 1;', null, PMA_DBI_QUERY_STORE);
|
||||||
for ($i = 0; $i < $cfg['InsertRows']; $i++) {
|
$rows = array_fill(0, $cfg['InsertRows'], false);
|
||||||
$rows[] = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// <markus@noga.de>
|
// <markus@noga.de>
|
||||||
|
Reference in New Issue
Block a user