Correction

This commit is contained in:
Michael RICOIS 2012-05-23 10:06:06 +00:00
parent 991423a077
commit 0f922f7d02

View File

@ -962,8 +962,8 @@ class Scores_Fields
$out[] = $result[0]['libdep'];
break;
case 'R':
$regionsM = new Application_Model_Departements();
$sql = $regions->select()->from($regionsM, array('NCCENR'))->where('REGION = ?', substr($item,1));
$regionsM = new Application_Model_Regions();
$sql = $regionsM->select()->from($regionsM, array('NCCENR'))->where('REGION = ?', substr($item,1));
$result = $regionsM->fetchAll($sql)->toArray();
$out[] = $result[0]['NCCENR'];
break;