Skip to content

Update index.php#56

Merged
thelfensdrfer merged 1 commit intocodigyde:mainfrom
r23:patch-1
Sep 5, 2023
Merged

Update index.php#56
thelfensdrfer merged 1 commit intocodigyde:mainfrom
r23:patch-1

Conversation

@r23
Copy link
Contributor

@r23 r23 commented Sep 5, 2023

If you write if ($result = AutoUpdate::ERROR_SIMULATE), then assign the value of AutoUpdate::ERROR_SIMULATE to the variable $result and then check if this value is true. This is probably not what you want. If you write if ($result == AutoUpdate::ERROR_SIMULATE), then compare the value of $result with the value of AutoUpdate::ERROR_SIMULATE and then check if these values are the same. This is probably what you want.

If you write if ($result = AutoUpdate::ERROR_SIMULATE), then assign the value of AutoUpdate::ERROR_SIMULATE to the variable $result and then check if this value is true. This is probably not what you want. If you write if ($result == AutoUpdate::ERROR_SIMULATE), then compare the value of $result with the value of AutoUpdate::ERROR_SIMULATE and then check if these values are the same. This is probably what you want.
@thelfensdrfer thelfensdrfer merged commit 2b5eeb0 into codigyde:main Sep 5, 2023
@thelfensdrfer
Copy link

Stupid mistake, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants