Changeset 675 for trunk/admin/index.php


Ignore:
Timestamp:
Dec 29, 2013, 9:45:39 PM (11 years ago)
Author:
maron
Message:
  • Fixed: tested for permission in progress
  • Fixed: script update all to new version end
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/index.php

    r674 r675  
    168168
    169169          $sql = 'SELECT * FROM `'.$Group['TablePrefix'] .'` as `T` '.
    170           ' WHERE `T`.`Entry` = '.$line['Entry'].' AND `T`.`Take` = '.$line2['ID']
     170          ' WHERE `T`.`Entry` = '.$line['Entry'].' AND (`T`.`Take` = '.$line['ID'].' OR `T`.`Take` = '.$line2['ID'].') '
    171171                      $DbResult3 = $System->Database->query($sql);
    172                     if($DbResult3->num_rows > 0) {
    173              $line3 = $DbResult3->fetch_assoc();
     172                    while($line3 = $DbResult3->fetch_assoc()) {
    174173             echo $line3['ID'].' ';
    175174                         $System->Database->query('UPDATE `'.$Group['TablePrefix'].'` SET `VersionEnd` = '.$line2['VersionEnd'].', `VersionStart` = '.$line['VersionStart'].', `Take` = '.$line['ID'].' WHERE ID='.$line3['ID']);
Note: See TracChangeset for help on using the changeset viewer.