Fix preferences to work with register_globals off

This commit is contained in:
Miles Lott 2001-09-15 12:54:43 +00:00
parent ad362668ed
commit 50a6073b51

View File

@ -1002,7 +1002,11 @@
function preferences()
{
global $submit,$prefs,$other,$fcat_id;
$submit = $GLOBALS['HTTP_POST_VARS']['submit'];
$prefs = $GLOBALS['HTTP_POST_VARS']['prefs'];
$other = $GLOBALS['HTTP_POST_VARS']['other'];
$fcat_id = $GLOBALS['HTTP_POST_VARS']['fcat_id'];
/* _debug_array($this->prefs); */
$customfields = $this->read_custom_fields();
@ -1032,7 +1036,7 @@
$this->template->set_file(array('preferences' => 'preferences.tpl'));
$this->template->set_var(action_url,$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.preferences'));
$this->template->set_var('action_url',$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.preferences'));
$i = 0; $j = 0;
$tr_color = $GLOBALS['phpgw']->nextmatchs->alternate_row_color($tr_color);