This commit is contained in:
Miles Lott 2001-12-18 05:53:31 +00:00
parent 044c98c83a
commit b78953097a
2 changed files with 8 additions and 15 deletions

View File

@ -9,16 +9,13 @@
* Free Software Foundation; either version 2 of the License, or (at your * * Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. * * option) any later version. *
\**************************************************************************/ \**************************************************************************/
/* $Id$ */ /* $Id$ */
// Delete all records for a user // Delete all records for a user
if (floor(phpversion()) == 4)
{
global $phpgw, $account_id;
}
$table_locks = Array('phpgw_preferences'); $table_locks = Array('phpgw_preferences');
$phpgw->db->lock($table_locks);
$phpgw->db->query('DELETE FROM phpgw_preferences WHERE preference_owner='.$account_id,__LINE__,__FILE__); $GLOBALS['phpgw']->db->lock($table_locks);
$phpgw->db->unlock(); $GLOBALS['phpgw']->db->query('DELETE FROM phpgw_preferences WHERE preference_owner='.$account_id,__LINE__,__FILE__);
$GLOBALS['phpgw']->db->unlock();
?> ?>

View File

@ -12,11 +12,8 @@
/* $Id$ */ /* $Id$ */
function country_set($config) function country_set($config)
{ {
global $phpgw;
$country = array( $country = array(
'user_choice' => 'Users Choice', 'user_choice' => 'Users Choice',
'force_select' => 'Force Selectbox' 'force_select' => 'Force Selectbox'
@ -38,5 +35,4 @@
} }
return $out; return $out;
} }
?> ?>