- do not use internal variables of LetoDMS_Core classes

This commit is contained in:
steinm 2013-01-25 07:24:54 +00:00
parent 36ee41e2c5
commit 184516dbdf
3 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ if (($oldname = $document->getName()) != $name) {
}
// if user is not owner send notification to owner
if ($user->getID()!= $document->_ownerID)
if ($user->getID() != $document->getOwner()->getID())
$notifier->toIndividual($user, $document->getOwner(), $subject, $message);
}

View File

@ -179,7 +179,7 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["si
}
// if user is not owner send notification to owner
if ($user->getID()!= $document->_ownerID)
if ($user->getID()!= $document->getOwner()->getID())
$notifier->toIndividual($user, $document->getOwner(), $subject, $message);
}

View File

@ -175,7 +175,7 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
}
// if user is not owner send notification to owner
if ($user->getID()!= $document->_ownerID)
if ($user->getID()!= $document->getOwner()->getID())
$notifier->toIndividual($user, $document->getOwner(), $subject, $message);
}