Skip to content

Commit

Permalink
fixed serious bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Jan 13, 2016
1 parent ffbdc36 commit 58bc2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/modules/file_access/classes/FileAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function run()
// find the path in the database
if( ( $objFile = \FilesModel::findByPath( $strFile ) ) !== null )
{
if( $objFile->count() > 0 )
if( $objFile instanceof \Model\Collection )
{
$logMessage = 'FileAccess error: found multiple database entries for path | count: '.$objFile->count();
while( $objFile->next() )
Expand Down

0 comments on commit 58bc2cd

Please sign in to comment.