mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-19 21:18:39 +00:00
fix is_* check
This commit is contained in:
parent
005f169e48
commit
06070dcac2
|
|
@ -663,7 +663,7 @@ final class ModuleManager
|
|||
*/
|
||||
public function installApplications(string $from) : void
|
||||
{
|
||||
if (!\file_exists($this->modulePath . '/' . $from . '/Application')) {
|
||||
if (!\is_dir($this->modulePath . '/' . $from . '/Application')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ final class PackageManager
|
|||
*/
|
||||
public function isValid() : bool
|
||||
{
|
||||
if (!\is_dir($this->extractPath . '/package.cert')) {
|
||||
if (!\is_file($this->extractPath . '/package.cert')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -156,7 +156,7 @@ final class PackageManager
|
|||
$state = \sodium_crypto_generichash_init();
|
||||
|
||||
foreach ($files as $file) {
|
||||
if ($file === 'package.cert' || \is_dir($this->extractPath . '/' . $file)) {
|
||||
if ($file === 'package.cert' || \is_file($this->extractPath . '/' . $file)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user