File tree Expand file tree Collapse file tree
xoops_trust_path/modules/xpwiki/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments