Changeset 469

Show
Ignore:
Timestamp:
11/01/09 11:19:55 (13 years ago)
Author:
kovell
Message:

API checks if kb3_moons table exists before attempting to use it.

Location:
dev/common/includes
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.eveapi.php

    r431 r469  
    48364836        if ($id != 0) 
    48374837        { 
     4838        $qry = new DBQuery(); 
     4839                $sql = "SHOW TABLES LIKE 'kb3_moons'"; 
     4840        $qry->execute($sql); 
     4841                if(!$qry->recordCount()) return ""; 
     4842                 
    48384843                $sql = 'select moon.itemID, moon.itemName from kb3_moons moon where moon.itemID = '.$id; 
    48394844 
    4840         $qry = new DBQuery(); 
    48414845        $qry->execute($sql); 
    48424846        $row = $qry->getRow(); 
  • dev/common/includes/globals.php

    r468 r469  
    77else 
    88{ 
    9         $svn_rev = '468'; 
     9        $svn_rev = '469'; 
    1010} 
    1111define('SVN_REV', $svn_rev);