Changeset 4014 for trunk


Ignore:
Timestamp:
Oct 10, 2009, 2:36:09 PM (15 years ago)
Author:
patdenice
Message:

merge r4013 from branch 2.0 to trunk
bug 1079: don't save settings in database when restore default settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r4003 r4014  
    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.