Skip to content

Commit

Permalink
Fixed issue mktime() function needs to be passed integer values
Browse files Browse the repository at this point in the history
  • Loading branch information
TMSWhite committed Jun 6, 2012
1 parent 68952b7 commit 3f6b34e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions classes/expressions/ExpressionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2010,6 +2010,16 @@ private function RDP_RunFunction($funcNameToken,$params)
$result = NAN;
}
break;
case 'mktime':
if (is_numeric($params[0]) && is_numeric($params[1]))
{
$result = $funcName(intval($params[0]),intval($params[1]));
}
else
{
$result = NAN;
}
break;
default:
$result = $funcName($params[0], $params[1]);
break;
Expand Down

0 comments on commit 3f6b34e

Please sign in to comment.