comanage-dev - [comanage-dev] r256 - registry/trunk/app/Model
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r256 - registry/trunk/app/Model
- Date: Mon, 12 Mar 2012 20:43:35 -0400
Author: marie
Date: 2012-03-12 20:43:35 -0400 (Mon, 12 Mar 2012)
New Revision: 256
Modified:
registry/trunk/app/Model/CoNsfDemographic.php
Log:
co-293 undefined index notice
Modified: registry/trunk/app/Model/CoNsfDemographic.php
===================================================================
--- registry/trunk/app/Model/CoNsfDemographic.php 2012-03-13 00:04:08
UTC (rev 255)
+++ registry/trunk/app/Model/CoNsfDemographic.php 2012-03-13 00:43:35
UTC (rev 256)
@@ -110,14 +110,15 @@
public function extractOptions($d, $full = false) {
global $cm_lang, $cm_texts;
- $val = array();
+ $val['race'] = array();
+ $val['disability'] = array();
// Retrieve all possible options for race
$raceOptions = $cm_texts[ $cm_lang ]['en.nsf.race'];
$disabilityOptions = $cm_texts[ $cm_lang ]['en.nsf.disab'];
// Extract selected values for race into array of single characters
- if(isset($d['race']))
+ if($d['race'] != NULL)
{
$raceValues = str_split($d['race']);
@@ -135,7 +136,7 @@
}
// Extract values for disability into array of single characters
- if(isset($d['disability']))
+ if($d['disability'] != NULL)
{
$disValues = str_split($d['disability']);
- [comanage-dev] r256 - registry/trunk/app/Model, svnlog, 03/12/2012
Archive powered by MHonArc 2.6.16.