Typo. 2013-05-15
authorIain Patterson <me@iain.cx>
Wed, 15 May 2013 14:34:03 +0000 (10:34 -0400)
committerIain Patterson <me@iain.cx>
Wed, 15 May 2013 14:34:03 +0000 (10:34 -0400)
Incorrect bitshift caused order state to be recorded incorrectly.

lib/order.php

index 114dfaf..7c68455 100644 (file)
       echo "  <td>State</td>\n";
       echo "  <td><select name=\"state\">\n";
       for ($i = 0; $i < count($states); $i++) {
-        option("state", $i << 1, ucfirst($states[$i]), $state);
+        option("state", 1 << $i, ucfirst($states[$i]), $state);
       }
       echo "</select></td>\n";
       echo "</tr>\n";