comanage-dev - [comanage-dev] r222 - registry/trunk/app/Model
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r222 - registry/trunk/app/Model
- Date: Tue, 14 Feb 2012 16:57:28 -0500
Author: marie
Date: 2012-02-14 16:57:28 -0500 (Tue, 14 Feb 2012)
New Revision: 222
Modified:
registry/trunk/app/Model/CoNsfDemographic.php
Log:
co-244
Modified: registry/trunk/app/Model/CoNsfDemographic.php
===================================================================
--- registry/trunk/app/Model/CoNsfDemographic.php 2012-02-11 02:16:35
UTC (rev 221)
+++ registry/trunk/app/Model/CoNsfDemographic.php 2012-02-14 21:57:28
UTC (rev 222)
@@ -53,10 +53,11 @@
*/
public function encodeOptions($d) {
- $encoded['race'] = implode($d['race']);
+ if(is_array($d['race']))
+ $encoded['race'] = implode($d['race']);
+ if(is_array($d['disability']))
+ $encoded['disability'] = implode($d['disability']);
- $encoded['disability'] = implode($d['disability']);
-
return $encoded;
}
- [comanage-dev] r222 - registry/trunk/app/Model, svnlog, 02/14/2012
Archive powered by MHonArc 2.6.16.