Skip to content
Permalink
Browse files

[plugin:dbsync] tune up

  • Loading branch information
nao-pon committed Mar 3, 2014
1 parent a72484b commit 0b422794404f54a47d2a596805dcb2d242a760b1
Showing with 3 additions and 3 deletions.
  1. +3 −3 xoops_trust_path/modules/xpwiki/plugin/dbsync.inc.php
@@ -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;

0 comments on commit 0b42279

Please sign in to comment.
You can’t perform that action at this time.