php3 array fixes in baseline, remove double global in 1st update function

This commit is contained in:
Miles Lott 2001-09-03 03:31:13 +00:00
parent e3c937326d
commit 8911a39448
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@
"cal_type" => array("type" => "varchar", "precision" => 10),
"cal_access" => array("type" => "char", "precision" => 10),
"cal_name" => array("type" => "varchar", "precision" => 80, "nullable" => false),
"cal_description" => array("type" => "text"),
"cal_description" => array("type" => "text")
),
"pk" => array("cal_id"),
"fk" => array(),
@ -66,6 +66,6 @@
"fk" => array(),
"ix" => array(),
"uc" => array()
),
)
);
?>

View File

@ -13,7 +13,7 @@
function calendar_v0_9_2to0_9_3update_owner($table, $field)
{
global $phpgw_setup, $phpgw_setup;
global $phpgw_setup;
$phpgw_setup->oProc->query("select distinct($field) from $table");
if ($phpgw_setup->oProc->num_rows())