Skip to content

Commit

Permalink
file_exists(): open_basedir error fix
Browse files Browse the repository at this point in the history
As discussed in here
http://www.elkarte.net/community/index.php?topic=4261.0

signed off by Ahmad Rasyid Ismail "ahrasis" ahrasis@gmail.com
  • Loading branch information
ahrasis committed Feb 5, 2017
1 parent 1ec92cf commit efdb6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/subs/PackagesFilterIterator.class.php
Expand Up @@ -41,7 +41,7 @@ public function accept()
}

// Anything that, once extracted, doesn't contain a package-info.xml.
if (!($current->isDir()) && file_exists($current->getPathname() . '/package-info.xml'))
if (!($current->isDir() && file_exists($current->getPathname() . '/package-info.xml')))
{
return false;
}
Expand Down

0 comments on commit efdb6e7

Please sign in to comment.