View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005012 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2013-03-21 15:43 | 2013-04-02 17:45 |
| Reporter | AndreHerrmann | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 4.7.3 / 5.0.3 revision 54408 | ||||
| Fixed in Version | 4.7.5 / 5.0.5 | ||||
| Summary | 0005012: oxTagCloud getTagLink Method needs an isset-check | ||||
| Description | Hi there, in oxtagcloud I see the following code : public function getTagLink( $sTag ) { $aCloudArray = $this->getCloudArray(); return $aCloudArray[$sTag]->getLink(); } Before returning something it should be checked via isset() pseudocode: public function getTagLink( $sTag ) { $aCloudArray = $this->getCloudArray(); if ( isset( $aCloudArray[$sTag] ) ) { return $aCloudArray[$sTag]->getLink(); } else { // return std link or whatever you have foreseen for this case } } Even if this is marked as deprecated it still should work as expected i think. BTW: Which would be the alternative to get a certain seo link of a tag name? | ||||
| Steps To Reproduce | Use a tag name which is not in the cloud array. | ||||
| Tags | No tags attached. | ||||
| Theme | Both | ||||
| Browser | All | ||||
| PHP Version | any | ||||
| Database Version | any | ||||