mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
- do not use internal variables of LetoDMS_Core classes
This commit is contained in:
parent
36ee41e2c5
commit
184516dbdf
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user