From 914855c176299cc56455a6879aaca5c6cfb0ccba Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Thu, 6 Sep 2007 14:23:46 +0000 Subject: [PATCH] use array_fill() --- tbl_change.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tbl_change.php b/tbl_change.php index 4331b9295..c054cc12d 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -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); } //