Changeset 541 for trunk


Ignore:
Timestamp:
May 27, 2013, 10:38:07 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Chyba v SQL dotazu při hledání uživatelů.
  • Opraveno: Chyba zobrazení výstupu exportu, pokud nebyla vybrána verze klienta.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/action.php

    r525 r541  
    88 
    99  if(array_key_exists('search', $_GET)) $Search = $_GET['search'];
    10   else $Search = $_POST['search'];
     10  else if(array_key_exists('search', $_POST)) $Search = $_POST['search'];
     11  else $Search = '';
    1112
    1213  $Output = '<table class="BaseTable"><tr><th>Skupina</th><th>Výsledků</th></tr>';
  • trunk/export/index.php

    r539 r541  
    564564  $Export = $DbResult->fetch_assoc();
    565565  if($Export['OutputType'] == '') $Output .= ShowMessage('Nevybrán typ exportu', MESSAGE_CRITICAL);
     566  else if($Export['ClientVersion'] == '') $Output .= ShowMessage('Export nemá vybránu verzi klienta', MESSAGE_CRITICAL);
    566567  else {
    567568        $DbResult = $System->Database->query('SELECT * FROM `ExportOutputType` WHERE `Id`='.$Export['OutputType']);
    568569  if($DbResult->num_rows > 0)
    569570  {
    570     $DbResult = $System->Database->query('SELECT * FROM `ExportVersion` WHERE `ExportType`='.$Export[ 'OutputType'].' AND `ClientVersion`='.$Export['ClientVersion']);
     571    $DbResult = $System->Database->query('SELECT * FROM `ExportVersion` WHERE (`ExportType`='.$Export['OutputType'].') AND (`ClientVersion`='.$Export['ClientVersion'].')');
    571572    if($DbResult->num_rows > 0)
    572573    { 
    573       $System->Database->query('UPDATE Export SET UsedCount = UsedCount + 1 WHERE Id='.$Export['Id']);
     574      $System->Database->query('UPDATE `Export` SET `UsedCount` = `UsedCount` + 1 WHERE `Id`='.$Export['Id']);
    574575      $Output = ExportOutput($Export['Id'], $Export['OutputType']);
    575576    } else $Output = ShowMessage('Nebyla vybrána požadovaná verze klienta.', MESSAGE_CRITICAL);
  • trunk/includes/Version.php

    r540 r541  
    11<?php
    22
    3 $Revision = 540; // Subversion revision
     3$Revision = 541; // Subversion revision
    44$DatabaseRevision = 539; // Database structure revision
    5 $ReleaseTime = '2013-05-18';
     5$ReleaseTime = '2013-05-27';
    66
    77?>
  • trunk/userlist.php

    r539 r541  
    99if(array_key_exists('search', $_GET))
    1010{
    11   $_SESSION['Where'] = ' WHERE `User`.`User` LIKE "%'.$_GET['search'].'%"';
     11  $_SESSION['Where'] = ' WHERE `User`.`Name` LIKE "%'.$_GET['search'].'%"';
    1212}
    1313if(array_key_exists('team', $_GET))
Note: See TracChangeset for help on using the changeset viewer.