Line 1177 of classes/editsurvey.class.php is currently this:
CODE
$query = "UPDATE {$this->CONF['db_tbl_prefix']}questions SET page = page + 1 WHERE sid = $sid AND
(page > $page) OR (page = $page AND oid > $oid)";
and should be changed to this(page > $page) OR (page = $page AND oid > $oid)";
CODE
$query = "UPDATE {$this->CONF['db_tbl_prefix']}questions SET page = page + 1 WHERE sid = $sid AND
((page > $page) OR (page = $page AND oid > $oid))";
Note the addition of the extra paranthesis around the last three conditions. ((page > $page) OR (page = $page AND oid > $oid))";
Simple mistake and easy fix, but a pain in the rear for many of you, probably. I've already updated the code for the next version.
---John Holmes...
