|
From: Benjamin C. <bc...@us...> - 2002-03-05 21:35:35
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv4541
Modified Files:
install.php
Log Message:
Fixed a warning with call-by-reference
Index: install.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/install.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- install.php 26 Jan 2002 16:46:52 -0000 1.11
+++ install.php 5 Mar 2002 21:35:32 -0000 1.12
@@ -75,7 +75,7 @@
header("Location: index.php");
}
-function build_select($box, $value = '', $ary) {
+function build_select($box, $value = '', &$ary) {
$text = '';
foreach ($ary as $val => $item) {
if ($value == $val and $value != '') $sel = ' selected';
@@ -203,7 +203,7 @@
$t->set_block('content', 'unwriteableblock', 'unwriteable');
$t->set_var(array(
'error' => !empty($error) ? "<div class=\"error\">$error</div>" : '',
- 'db_type' => build_select('db', (isset($db_type) ? $db_type : ''), &$db_types),
+ 'db_type' => build_select('db', (isset($db_type) ? $db_type : ''), $db_types),
'db_host' => !empty($db_host) ? $db_host : 'localhost',
'db_database' => !empty($db_database) ? $db_database : 'bug_tracker',
'db_user' => !empty($db_user) ? $db_user : 'root',
|