XPressME Integration Kit

Trac


Ignore:
Timestamp:
Feb 27, 2011, 2:25:21 PM (14 years ago)
Author:
toemon
Message:

Table 'xdb_xpress_blogs' doesn't exist SQLエラー修正 Fixes#390

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/xoops_version.php

    r684 r687  
    5858                $wp_prefix = preg_replace('/wordpress/','wp',$mydirname); 
    5959                $wp_blogs_tbl = $xoopsDB->prefix($wp_prefix) . '_blogs'; 
    60                 $sql = "SELECT * FROM " . $wp_blogs_tbl; 
    61                 $result = $xoopsDB->query($sql, 0, 0); 
     60                $sql = "SHOW TABLES LIKE '$wp_blogs_tbl'"; 
     61                $result = $xoopsDB->queryf($sql, 0, 0); 
    6262                if ($xoopsDB->getRowsNum($result)) return true; 
    6363                return false; 
Note: See TracChangeset for help on using the changeset viewer.