diff options
author | dartcafe <github@dartcafe.de> | 2020-09-02 22:03:54 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-09-02 22:03:54 +0300 |
commit | 28fda0d28ff5db1597c9b6260b9b39b93b639aa7 (patch) | |
tree | b7e7b90875d2c0075be4736fafc3b4197e14c9d9 /lib | |
parent | 1da2829dbdda7dc20d18dd6e3a694da1fad680a8 (diff) |
fix syntax
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Migration/Version0010Date20191227063812.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Migration/Version0010Date20191227063812.php b/lib/Migration/Version0010Date20191227063812.php index 4b5bfd76..5fe7b26e 100644 --- a/lib/Migration/Version0010Date20191227063812.php +++ b/lib/Migration/Version0010Date20191227063812.php @@ -354,7 +354,7 @@ class Version0010Date20191227063812 extends SimpleMigrationStep { $result = $query->execute(); while ($row = $result->fetch()) { - if ($row['access'] == 'public') { + if ($row['access'] === 'public') { // copy the hash to a public share $insert ->setParameter('token', $row['hash']) @@ -364,7 +364,7 @@ class Version0010Date20191227063812 extends SimpleMigrationStep { ->setParameter('user_email', null) ->setParameter('user', ''); $insert->execute(); - } elseif ($row['access'] == 'hidden') { + } elseif ($row['access'] === 'hidden') { // copy the hash to a public share // poll stays hidden for registered users $insert @@ -375,7 +375,7 @@ class Version0010Date20191227063812 extends SimpleMigrationStep { ->setParameter('user_email', null) ->setParameter('user', ''); $insert->execute(); - } elseif ($row['access'] == 'registered') { + } elseif ($row['access'] === 'registered') { // copy the hash to a public share // to keep the hash $insert |