You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/08/30 01:02:03 UTC
svn commit: r690416 -
/incubator/shindig/trunk/php/src/social-api/opensocial/model/Enum.php
Author: chabotc
Date: Fri Aug 29 16:02:03 2008
New Revision: 690416
URL: http://svn.apache.org/viewvc?rev=690416&view=rev
Log:
Don't NOTICE on empty enums
Modified:
incubator/shindig/trunk/php/src/social-api/opensocial/model/Enum.php
Modified: incubator/shindig/trunk/php/src/social-api/opensocial/model/Enum.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social-api/opensocial/model/Enum.php?rev=690416&r1=690415&r2=690416&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social-api/opensocial/model/Enum.php (original)
+++ incubator/shindig/trunk/php/src/social-api/opensocial/model/Enum.php Fri Aug 29 16:02:03 2008
@@ -42,7 +42,7 @@
}
}
$this->key = $key;
- $this->displayValue = ! empty($displayValue) ? $displayValue : $this->values[$key];
+ $this->displayValue = ! empty($displayValue) ? $displayValue : (isset($this->values[$key]) ? $this->values[$key] : '');
unset($this->values);
}