Skip to content

Commit

Permalink
[plugin:dbsync] tune up
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Mar 3, 2014
1 parent a72484b commit 0b42279
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xoops_trust_path/modules/xpwiki/plugin/dbsync.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -663,12 +663,12 @@ function plain_db_init()
}

$id = $this->func->get_pgid_by_name($page, FALSE, TRUE);
$query = "SELECT plain FROM `".$this->xpwiki->db->prefix($this->root->mydirname."_plain")."` WHERE `pgid` = ".$id.";";
$query = "SELECT LENGTH(plain) FROM `".$this->xpwiki->db->prefix($this->root->mydirname."_plain")."` WHERE `pgid` = ".$id.";";
$result = $this->xpwiki->db->query($query);
if ($result && $this->xpwiki->db->getRowsNum($result))
{
list($text) = $this->xpwiki->db->fetchRow( $result );
if ($text && !$this->root->post['plain_all'])
list($len) = $this->xpwiki->db->fetchRow( $result );
if ($len && !$this->root->post['plain_all'])
{
$dones[0][] = $file;
continue;
Expand Down

0 comments on commit 0b42279

Please sign in to comment.