Thinkphp in the volist tag of the MoD in a certain record of a newline bug

Source: Internet
Author: User
Thinkphp in the volist tag in the control of a certain record of a newline bug

BUGDescription:
thinkphp version 2.0

Modproperties are also used to control line breaks for a certain record, such as:
<volistname="List"ID="VO"MoD="5">
{$vo.name}
<eq name="mod"value="4">
eq>
volist>
----The above text is excerpted from the Official Handbook----


the actual execution result is
first row of 4 records (missing one)
The second and subsequent lines are 5 records .


Change of opinion:
ThinkPHP\lib\think\template\taglib\taglibcx. class. PHP
Line 107and theLine 108Position SwapA bit
Original code :
$parseStr. = ' ++$ '. $key. '; ';
$parseStr. = ' $mod = ($ '. $key. '% '. $mod. ')? > ';
After modification:
$parseStr. = ' $mod = ($ '. $key. '% '. $mod. '); ';
$parseStr. = ' ++$ '. $key. '? > ';

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.