Author: chabotc
Date: Thu Mar 5 11:29:22 2009
New Revision: 750426
URL: http://svn.apache.org/viewvc?rev=750426&view=rev
Log:
SHINDIG-951 by Nagy Attila - setFieldImpl does not handle boolean false values
Modified:
incubator/shindig/trunk/php/src/social/model/Person.php
Modified: incubator/shindig/trunk/php/src/social/model/Person.php
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social/model/Person.php?rev=750426&r1=750425&r2=750426&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/model/Person.php (original)
+++ incubator/shindig/trunk/php/src/social/model/Person.php Thu Mar 5 11:29:22
2009
@@ -98,7 +98,7 @@
private function setFieldImpl($fieldName, $value) {
// treat empty singular/plural fields as null so they don't pollute the
output
- if ($value == '' || (is_array($value) && ! count($value))) {
+ if ($value === '' || (is_array($value) && ! count($value))) {
$value = null;
}
$this->$fieldName = $value;