Ignore:
Timestamp:
Sep 27, 2011, 9:31:09 PM (13 years ago)
Author:
Eric
Message:

Merge r12247 from trunk to branch 2.30

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/branches/2.30/include/upgradedb.inc.php

    r12239 r12248  
    522522
    523523  // Piwigo's native tables modifications for password reset function - Add pwdreset column
    524   $q = '
     524  $query = '
     525SHOW COLUMNS FROM '.USERS_TABLE.'
     526LIKE "UAM_pwdreset"
     527;';
     528 
     529  $result = pwg_query($query);
     530
     531  if(!pwg_db_fetch_row($result))
     532  {
     533    $q = '
    525534ALTER TABLE '.USERS_TABLE.'
    526535ADD UAM_pwdreset enum("true","false")
    527536;';
    528   pwg_query($q);
     537    pwg_query($q);
     538  }
    529539}
    530540?>
Note: See TracChangeset for help on using the changeset viewer.