日本精品视频一区二区_国产一区二区三区福利_jizzjizz在线观看_国产欧美欧洲

catlist標簽 limit屬性 小bug

樓主

經測試 如果 catlist標簽里使用 limit='記錄開始處,要取得的記錄數',如果“開始處”為0,則會取不到數據;

調整方案:yang.class.php

/*************************************/

\$_typeid = intval($typeid);

\$_type = "$type";

\$_temp = explode(',', "$limit");

\$_temp[0] = \$_temp[0] >0? \$_temp[0] : 10;

if (isset(\$_temp[1]) && intval(\$_temp[1]) > 0) {

\$_limit[0] = \$_temp[0];

\$_limit[1] = intval(\$_temp[1]);

}else {

\$_limit[0] = 0;

\$_limit[1] = \$_temp[0];

}

將紅色部分里的“>”改為 ">=" 


其它標簽如果 limit 出現此情況 ,可在yang.class.php對應的標簽處修改即可



07月20日 23:39 回復(1) 點贊 
共 1 條記錄
回復