Skip to content

Commit 0b42279

Browse files
committed
[plugin:dbsync] tune up
1 parent a72484b commit 0b42279

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

xoops_trust_path/modules/xpwiki/plugin/dbsync.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,12 +663,12 @@ function plain_db_init()
663663
}
664664

665665
$id = $this->func->get_pgid_by_name($page, FALSE, TRUE);
666-
$query = "SELECT plain FROM `".$this->xpwiki->db->prefix($this->root->mydirname."_plain")."` WHERE `pgid` = ".$id.";";
666+
$query = "SELECT LENGTH(plain) FROM `".$this->xpwiki->db->prefix($this->root->mydirname."_plain")."` WHERE `pgid` = ".$id.";";
667667
$result = $this->xpwiki->db->query($query);
668668
if ($result && $this->xpwiki->db->getRowsNum($result))
669669
{
670-
list($text) = $this->xpwiki->db->fetchRow( $result );
671-
if ($text && !$this->root->post['plain_all'])
670+
list($len) = $this->xpwiki->db->fetchRow( $result );
671+
if ($len && !$this->root->post['plain_all'])
672672
{
673673
$dones[0][] = $file;
674674
continue;

0 commit comments

Comments
 (0)