Author: chabotc
Date: Thu Mar  5 11:29:37 2009
New Revision: 750427

URL: http://svn.apache.org/viewvc?rev=750427&view=rev
Log:
SHINDIG-951 by Nagy Attila - setFieldImpl does not handle boolean false values

Modified:
    incubator/shindig/branches/1.0.x-incubating/php/src/social/model/Person.php

Modified: 
incubator/shindig/branches/1.0.x-incubating/php/src/social/model/Person.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/branches/1.0.x-incubating/php/src/social/model/Person.php?rev=750427&r1=750426&r2=750427&view=diff
==============================================================================
--- incubator/shindig/branches/1.0.x-incubating/php/src/social/model/Person.php 
(original)
+++ incubator/shindig/branches/1.0.x-incubating/php/src/social/model/Person.php 
Thu Mar  5 11:29:37 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;


Reply via email to