Changeset 4013


Ignore:
Timestamp:
Oct 10, 2009, 2:34:31 PM (11 years ago)
Author:
patdenice
Message:

bug 1079: don't save settings in database when restore default settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/profile.php

    r4004 r4013  
    4444  if (isset($_POST['reset_to_default']))
    4545  {
    46     // mass_updates function
    47     include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    48 
    4946    $fields = array(
    5047      'nb_image_line', 'nb_line_page', 'maxwidth', 'maxheight', 'expand',
     
    6158    $default_user = mysql_fetch_assoc($result);
    6259    $userdata = array_merge($userdata, $default_user);
    63 
    64     mass_updates(
    65       USER_INFOS_TABLE,
    66       array('primary' => array('user_id'), 'update' => $fields),
    67       array($userdata)
    68       );
    6960  }
    7061
Note: See TracChangeset for help on using the changeset viewer.