google-code-export / rtgui

Automatically exported from code.google.com/p/rtgui
1 stars 0 forks source link

No zeroes in JSON output #82

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It seems PHP is eating up zeros as null values in array_diff.  This causes
rates which have fallen to zero to not be updated (cleared) until the page
reloads.  Attached is a test case to demonstrate the issue.  Using
array_diff_assoc fixes this.

...and in turn causes the now empty divs to collapse.  .datacol should
likely have "min-height: 1em" thrown in so non-breaking spaces don't have
to be injected all over the place.

Original issue reported on code.google.com by llamaXxX@gmail.com on 28 May 2009 at 3:29

Attachments:

GoogleCodeExporter commented 9 years ago
I've noticed this behaviour and could never put my finger on it.  Excellent 
work 
llama, and thanks for the code.

Original comment by lemonbe...@gmail.com on 28 May 2009 at 9:58

GoogleCodeExporter commented 9 years ago
errr.... your attached file is 0 bytes :(

Original comment by lemonbe...@gmail.com on 29 May 2009 at 10:05

GoogleCodeExporter commented 9 years ago
Oops.  Let's try this again.  (Although it only shows an example of 
array_diff_assoc
including a zero value when array_diff does not, so it's nothing overly 
important.)

Original comment by llamaXxX@gmail.com on 29 May 2009 at 1:48

Attachments: