Author: chabotc
Date: Thu Oct  9 00:21:48 2008
New Revision: 703085

URL: http://svn.apache.org/viewvc?rev=703085&view=rev
Log:
Temp hack to make Person work with LookingFor enums, was this broken by the PC 
alignment or just incorrect data in all my test cases?

Modified:
    incubator/shindig/trunk/php/src/social/model/Enum.php

Modified: incubator/shindig/trunk/php/src/social/model/Enum.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social/model/Enum.php?rev=703085&r1=703084&r2=703085&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/model/Enum.php (original)
+++ incubator/shindig/trunk/php/src/social/model/Enum.php Thu Oct  9 00:21:48 
2008
@@ -38,7 +38,8 @@
                                // case of mixing key <> display value, correct 
it
                                $key = array_search($key, $this->values);
                        } else {
-                               throw new Exception("Invalid Enum key: $key");
+                               $this->displayValue = $displayValue;
+                               //throw new Exception("Invalid Enum key: 
$key\n". print_r(debug_backtrace(), true));
                        }
                }
                $this->key = $key;


Reply via email to