use array_fill()

This commit is contained in:
Sebastian Mendel
2007-09-06 14:23:46 +00:00
parent d979a60de1
commit 914855c176

View File

@@ -190,9 +190,7 @@ if (isset($primary_key)) {
// no primary key given, just load first row - but what happens if tbale is empty?
$insert_mode = true;
$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[] = false;
}
$rows = array_fill(0, $cfg['InsertRows'], false);
}
// <markus@noga.de>