git://git.iain.cx/iain
/
readifood.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47051a8
)
Typo.
2013-05-15
author
Iain Patterson
<me@iain.cx>
Wed, 15 May 2013 14:34:03 +0000
(10:34 -0400)
committer
Iain 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
patch
|
blob
|
history
diff --git
a/lib/order.php
b/lib/order.php
index
114dfaf
..
7c68455
100644
(file)
--- a/
lib/order.php
+++ b/
lib/order.php
@@
-346,7
+346,7
@@
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";