fixed logic bug
This commit is contained in:
parent
141a1b2846
commit
f4564b86a7
1 changed files with 2 additions and 2 deletions
|
@ -53,11 +53,11 @@ class DataController extends Controller {
|
|||
$timestamp = $this->view->request->getParameter('ts');
|
||||
$value = $this->view->request->getParameter('value');
|
||||
|
||||
if (!is_null($timestamp)) {
|
||||
if (is_null($timestamp)) {
|
||||
$timestamp = round(microtime(TRUE) * 1000);
|
||||
}
|
||||
|
||||
if (!is_null($value)) {
|
||||
if (is_null($value)) {
|
||||
$value = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue