Skip to content

Commit

Permalink
Update hibernate
Browse files Browse the repository at this point in the history
  • Loading branch information
lewmilburn committed Apr 29, 2024
1 parent 472e749 commit aa1b0bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Processes/Saturn/PluginManager/Hibernate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ class Hibernate
{
public function IsHibernating($Manifest): bool
{
if (in_array($_SERVER['REQUEST_URI'], $Manifest->Hibernate)) {
return false;
foreach ($Manifest->Hibernate as $hibernatePath) {
if (str_contains($_SERVER['REQUEST_URI'], $hibernatePath)) {
return false;
}
}

return true;
Expand Down

0 comments on commit aa1b0bf

Please sign in to comment.