More than one is >
This commit is contained in:
parent
0a97a2eefc
commit
ba6fe651d0
@ -74,7 +74,7 @@ class Session extends Db{
|
|||||||
|
|
||||||
public static function getSessionByFileId($fileId){
|
public static function getSessionByFileId($fileId){
|
||||||
$sessions = self::getSessionsByFileIds(array($fileId));
|
$sessions = self::getSessionsByFileIds(array($fileId));
|
||||||
if (count($sessions) === 1) {
|
if (count($sessions) > 1) {
|
||||||
return $sessions[0];
|
return $sessions[0];
|
||||||
} else {
|
} else {
|
||||||
\OCP\Util::writeLog('documents','more than one session found for file id '.$fileId,\OCP\Util::ERROR);
|
\OCP\Util::writeLog('documents','more than one session found for file id '.$fileId,\OCP\Util::ERROR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user