Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

math: function call x not allowed #288

Closed
interduo opened this issue Sep 9, 2016 · 1 comment
Closed

math: function call x not allowed #288

interduo opened this issue Sep 9, 2016 · 1 comment

Comments

@interduo
Copy link

interduo commented Sep 9, 2016

Version: 3.1.30
File: smarty/libs/plugins/function.math.php
Line:66

Message:
Warning: math: function call x not allowed in /var/www/html/lms/vendor/smarty/smarty/libs/plugins/function.math.php on line 66

Example code:
{math equation="floor(x/100)" x=$event.begintime format="%02d"}:{math equation="x % 100" x=$event.begintime format="%02d"}

@uwetews
Copy link
Contributor

uwetews commented Sep 10, 2016

The was caused by undefined variable $event or undefined array index 'begintime'.
Parameter checking order is now changed to avoid misleading E_USER_WARNING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants