Permalink
Browse files

Skip app displayed in related list

  • Loading branch information...
1 parent 64feba3 commit c6c4df784ce16979fb226748a888ab6a99770427 @rbtylee rbtylee committed Apr 17, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 app/controllers/software_controller.php
@@ -77,8 +77,11 @@ function showDesc()
#append subcategory to the meta array
$list = $this->Software->find('all',array('conditions'=>'Software.softSubCat='."'".$data[0]['Software']['softSubCat']."'",'fields'=>array('Software.softName')));
foreach($list as $var)
- {
- array_push($metaSoftList,$var['Software']['softName']);
+ { # skip the application displayed but add the rest
+ if ($softName != $var['Software']['softName'])
+ {
+ array_push($metaSoftList,$var['Software']['softName']);
+ }
}
#remove duplicates
$metaSoftList = array_unique($metaSoftList);

0 comments on commit c6c4df7

Please sign in to comment.