Skip to content

Commit

Permalink
Fixed issue #15692: where-clause in reorderMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
mbischof authored and olleharstedt committed Jan 10, 2020
1 parent a06d0b4 commit 67427c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/SurveymenuEntries.php
Expand Up @@ -142,7 +142,7 @@ public static function reorderMenu($menuId)
$statistics =
Yii::app()->db->createCommand()->select('MIN(ordering) as loworder, MAX(ordering) as highorder, COUNT(id) as count')
->from('{{surveymenu_entries}}')
->where(['menu_id = :menu_id'], ['menu_id' => (int) $menuId])
->where('menu_id = :menu_id', ['menu_id' => (int) $menuId])
->queryRow();
if (($statistics['loworder'] != 1) || ($statistics['highorder'] != $statistics['count'])) {
$current = 1;
Expand Down

0 comments on commit 67427c6

Please sign in to comment.