Skip to content

Commit cda63ac

Browse files
authored
Update index.php
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.
1 parent 4454361 commit cda63ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/client/update/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function onAllUpdateFinishCallbacks($updatedVersions)
6969
} else {
7070
echo 'Update simulation failed: ' . $result . '!<br>';
7171

72-
if ($result = AutoUpdate::ERROR_SIMULATE) {
72+
if ($result == AutoUpdate::ERROR_SIMULATE) {
7373
echo '<pre>';
7474
var_dump($update->getSimulationResults());
7575
echo '</pre>';

0 commit comments

Comments
 (0)