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 *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
// Delete all records for a user
if (floor(phpversion()) == 4)
{
global $phpgw, $account_id;
}
/* $Id$ */
// Delete all records for a user
$table_locks = Array('phpgw_preferences');
$phpgw->db->lock($table_locks);
$phpgw->db->query('DELETE FROM phpgw_preferences WHERE preference_owner='.$account_id,__LINE__,__FILE__);
$phpgw->db->unlock();
$GLOBALS['phpgw']->db->lock($table_locks);
$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$ */
function country_set($config)
{
global $phpgw;
$country = array(
'user_choice' => 'Users Choice',
'force_select' => 'Force Selectbox'
@ -38,5 +35,4 @@
}
return $out;
}
?>
?>