diff --git a/appinfo/info.xml b/appinfo/info.xml index 86d763e42..67e040696 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ Polls A polls app, similar to doodle/dudle with the possibility to restrict access. A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public). - 0.9.4 + 0.9.5 agpl Vinzenz Rosenkranz René Gieling diff --git a/lib/Migration/Version0009Date20181125061900.php b/lib/Migration/Version0009Date20181125061900.php index b1e3315a7..81cc460e9 100644 --- a/lib/Migration/Version0009Date20181125061900.php +++ b/lib/Migration/Version0009Date20181125061900.php @@ -358,11 +358,11 @@ protected function findOptionId($pollId, $text) { $queryFind = $this->connection->getQueryBuilder(); $queryFind->select(['id']) ->from('polls_options') - // ->where($queryFind->expr()->eq('poll_id', $pollId)) - // ->andWhere($queryFind->expr()->eq('poll_option', $text)); - ->where('poll_id = \'' . $pollId . '\'') - ->andWhere('poll_option_text =\'' . $text . '\''); - + ->where('poll_id = :pollId') + ->andWhere('poll_option_text = :text') + ->setParameter('pollId', $pollId) + ->setParameter('text', $text); + $resultFind = $queryFind->execute(); $row = $resultFind->fetch();