Changeset 333


Ignore:
Timestamp:
Jan 30, 2004, 11:48:30 PM (20 years ago)
Author:
z0rglub
Message:

Php warnings correction

Location:
branches/release-1_3/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/admin/group_list.php

    r143 r333  
    3434  $row = mysql_fetch_array( mysql_query( $query ) );
    3535  // confirm group deletion ?
    36   if ( $_GET['confirm'] != 1 )
     36  if ( !isset( $_GET['confirm'] ) or $_GET['confirm'] != 1 )
    3737  {
    3838    $vtp->addSession( $sub, 'deletion' );
  • branches/release-1_3/admin/user_modify.php

    r260 r333  
    4040$page['username'] = $row['username'];
    4141$page['status'] = $row['status'];
     42if ( !isset( $row['mail_address'] ) ) $row['mail_address'] = '';
    4243$page['mail_address'] = $row['mail_address'];
    4344// user is not modifiable if :
     
    6364  // shall we use a new password and overwrite the old one ?
    6465  $use_new_password = false;
    65   if ( $_POST['use_new_pwd'] == 1)
    66   {
    67     $use_new_password = true;
    68   }
     66  if ( isset( $_POST['use_new_pwd'] ) ) $use_new_password = true;
    6967  // if we try to update the webmaster infos, we have to set the status to
    7068  // 'admin'
     
    8987  {
    9088    $dissociate = 'dissociate-'.$row['id'];
    91     if ( $_POST[$dissociate] == 1 )
     89    if ( isset( $_POST[$dissociate] ) )
    9290    {
    9391      $query = 'DELETE FROM '.PREFIX_TABLE.'user_group';
     
    127125  $vtp->setVar( $sub, 'confirmation.url', $url );
    128126  $vtp->closeSession( $sub, 'confirmation' );
    129   if ( $use_new_pwd )
     127  if ( $use_new_password )
    130128  {
    131129    $vtp->addSession( $sub, 'password_updated' );
Note: See TracChangeset for help on using the changeset viewer.