Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11943

$VAR = false has unexpected result

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-a1
    • Fix Version/s: 3.1.0-a2
    • Component/s: Template Engine
    • Labels:
      None

      Description

      Code:

      <!-- DEFINE $VAR = false -->
      <!-- IF $VAR -->
      true
      <!-- ELSE -->
      false
      <!-- ENDIF -->
      

      Expected: false
      Result: true

        Activity

        Hide
        nickvergessen Joas Schilling added a comment -

        This worked in 3.0 btw

        Show
        nickvergessen Joas Schilling added a comment - This worked in 3.0 btw
        Hide
        EXreaction EXreaction [X] (Inactive) added a comment -

        I believe the issue is that:

        <!-- DEFINE $VAR = false -->

        is transformed into:
        <!-- DEFINE $VAR = 'false' -->

        Show
        EXreaction EXreaction [X] (Inactive) added a comment - I believe the issue is that: <!-- DEFINE $VAR = false --> is transformed into: <!-- DEFINE $VAR = 'false' -->

          People

          • Assignee:
            EXreaction EXreaction [X] (Inactive)
            Reporter:
            nickvergessen Joas Schilling
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development