Update of /cvsroot/stack/stack-dev/lib/reporting
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv20768/lib/reporting
Modified Files:
Tag: STACK2_2
SkillsResources.php
Log Message:
Diagnostic reporting patch.
Index: SkillsResources.php
===================================================================
RCS file: /cvsroot/stack/stack-dev/lib/reporting/Attic/SkillsResources.php,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -C2 -d -r1.1.2.5 -r1.1.2.6
*** SkillsResources.php 1 Sep 2010 16:51:00 -0000 1.1.2.5
--- SkillsResources.php 7 Sep 2010 13:40:06 -0000 1.1.2.6
***************
*** 579,584 ****
// return a (ranked?) list of resources for the passed skills
public function getResourcesForSkills($skills) {
foreach($skills as $skill) {
! $return[] = $this->resourceMap[$skill];
}
return $return;
--- 579,585 ----
// return a (ranked?) list of resources for the passed skills
public function getResourcesForSkills($skills) {
+ $return = array();
foreach($skills as $skill) {
! if(!empty($this->resourceMap[$skill])) $return[] = $this->resourceMap[$skill];
}
return $return;
|