Skip to content

Commit

Permalink
[Patch] Fix for code type in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NadirRoGue committed Apr 18, 2016
1 parent 6c9900f commit 193e369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files/ajax/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
foreach($shared as $share)
{
$name = ltrim($share['file_target'], '/');
if($share['item_type'] === 'folder' && $share['share_type'] !== 3)
if($share['item_type'] === 'folder' && $share['share_type'] !== '3')
{
$pos = strrpos($name, ' ');
$name = substr($name, 0, $pos);
Expand All @@ -94,7 +94,7 @@
$name = ltrim($name, '.sys.v#.');
}

if(!isset($finalShared[$name]) || (isset($finalShared[$name]) && $finalShared[$name] !== 3))
if(!isset($finalShared[$name]) || (isset($finalShared[$name]) && $finalShared[$name] !== '3'))
{
$finalShared[$name] = $share['share_type'];
}
Expand Down

0 comments on commit 193e369

Please sign in to comment.