← Back to team overview

mahara-contributors team mailing list archive

[Bug 1100066] Re: dwoo function str doesn't take extra arguments that are "0"

 

** Changed in: mahara
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contrib members
https://bugs.launchpad.net/bugs/1100066

Title:
  dwoo function str doesn't take extra arguments that are "0"

Status in Mahara ePortfolio:
  Fix Released

Bug description:
  in file htdocs/lib/dwoo/mahara/plugins/function.str.php, line 26.

  The test for $arg1, $arg2, and $arg3 tests with just a plain "if"
  statement, while it should check if the parameter is actually set,
  otherwise values of "0", false, and other falsey values will not be
  stored in the arguments array.

  This can cause issues with plural strings.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1100066/+subscriptions


References