Ignore:
Timestamp:
Feb 20, 2013, 11:45:54 PM (11 years ago)
Author:
chronos
Message:
  • Opraveno: Kontrola verze klienta při exportu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r525 r526  
    3535    $this->UserNames = substr($this->UserNames, 2);     
    3636   
    37     $DbResult = $this->Database->query('SELECT * FROM `ClientVersion` WHERE `Id`='.$this->Export['ClientVersion']);
    38     $this->ClientVersion = $DbResult->fetch_assoc();   
     37    if($this->Export['ClientVersion'] != '')
     38    {
     39      $DbResult = $this->Database->query('SELECT * FROM `ClientVersion` WHERE `Id`='.$this->Export['ClientVersion']);
     40      $this->ClientVersion = $DbResult->fetch_assoc();
     41    } else $this->ClientVersion = '';   
    3942  }
    4043 
    4144  function BuildQuery($Group, $Columns = '', $Version = '')
    4245  {
    43     global $TranslationTree;
     46    global $TranslationTree, $Config;
    4447   
    4548    if ($Version <> '')
     
    140143    global $Config, $TranslationTree, $AoWoWconf;
    141144 
    142     require_once('../aowow/configs/config.php');
     145    //require_once('../aowow/configs/config.php');
    143146 
    144147    $Buffer = $this->ExportToMangosSQL();
     
    196199    global $TranslationTree, $User;
    197200 
    198     $this->LoadFilters($this->Id);
     201    $this->LoadFilters();
    199202
    200203    $Buffer = '<?xml version="1.0" encoding="utf-8"?>'."\n".
Note: See TracChangeset for help on using the changeset viewer.