elofgren: Add 2 needed calls to isset(): in Hierarchy::markingFilterMatches() and Notifications::getItems(). Errors were encountered when moving and deleting files in 'Files and Images'. (merged from branches/gsoc)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41775 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-14 17:40:29 +00:00
parent ff2f8fa7f4
commit 9a22699fcc

View File

@ -121,9 +121,8 @@ class Hierarchy extends DataObjectDecorator {
return true;
}
if(isset($this->markingFilter['parameter'])) {
$parameterName = $this->markingFilter['parameter'];
if(is_array($this->markingFilter['value'])) {
if(isset($this->markingFilter['parameter']) && $parameterName = $this->markingFilter['parameter']) {
if(is_array($this->markingFilter['value'])){
$ret = false;
foreach($this->markingFilter['value'] as $value) {
$ret = $ret||$node->$parameterName==$value;