Subversion Repositories eFlore/Applications.cel

Rev

Rev 1768 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1768 Rev 1769
Line 234... Line 234...
234
		else $r[$k] = -1;
234
		else $r[$k] = -1;
235
	}
235
	}
236
	return $r;
236
	return $r;
237
}
237
}
Line -... Line 238...
-
 
238
 
-
 
239
function champsLongToShort2($a) {
-
 
240
	$r = array();
-
 
241
	$x = array_flip($GLOBALS['champs']);
-
 
242
	foreach($a as $k => $v) {
-
 
243
		if(isset($x[$k])) $r[$x[$k]] = $v;
-
 
244
		else $r[$k] = $v;
-
 
245
	}
-
 
246
	return $r;