Ignore:
Timestamp:
Dec 23, 2009, 9:03:16 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Zobrazení obrázku statistiky dokončení překladové skupiny pro neexistujícího uživatele.
  • Opraveno: Používat absolutní cestu pro obrázky šipek řezení tabulek.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/img_statistic.php

    r286 r289  
    1010if(array_key_exists('team', $_GET))
    1111{
    12   $team = ' AND `User` IN (SELECT `ID` FROM `user` WHERE `team` = '.$_GET['team'].')';
     12  $team = ' AND `User` IN (SELECT `ID` FROM `user` WHERE `team` = '.($_GET['team'] * 1).')';
    1313} else $team = '';
     14
    1415if(array_key_exists('language', $_GET))
    1516{
    1617  $language = ' AND `Language` = '.$_GET['language'].'';
    1718} else $language = '';
     19
    1820if(array_key_exists('user', $_GET))
    1921{
    20   $DbResult = $Database->SQLCommand('SELECT `user`,`ExportSetting` FROM `user` WHERE ID='.$_GET['user']);
    21   $User = mysql_fetch_assoc($DbResult);
    22   $ExportSetting = unserialize($User['ExportSetting']);
    23   $SelectedUsers = '';
    24   foreach($ExportSetting['users-selection'] as $Item)
    25     $SelectedUsers .= ','.$Item;
    26   $SelectedUsers = substr($SelectedUsers, 1);
    27   $user_sql = ' AND `User` IN ('.$SelectedUsers.')';
     22  $DbResult = $Database->SQLCommand('SELECT `user`,`ExportSetting` FROM `user` WHERE ID='.($_GET['user'] * 1));
     23  if(mysql_num_rows($DbResult) > 0)
     24  {
     25    $User = mysql_fetch_assoc($DbResult);
     26    $ExportSetting = unserialize($User['ExportSetting']);
     27    $SelectedUsers = '';
     28    foreach($ExportSetting['users-selection'] as $Item)
     29      $SelectedUsers .= ','.$Item;
     30    $SelectedUsers = substr($SelectedUsers, 1);
     31    $user_sql = ' AND `User` IN ('.$SelectedUsers.')';
     32  } else $user_sql = '';
    2833} else $user_sql = '';
     34
    2935
    3036$ID = mysql_fetch_row($Database->SQLCommand('SELECT MAX(`VersionEnd`) FROM '.$Group['TablePrefix']));
Note: See TracChangeset for help on using the changeset viewer.