projects
/
e-DoKo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec0c90f
)
bugfix: when setting the winner for a trick a reload of the page was posiible causing...
author
arun
<arun@nubati.net>
Sun, 26 Nov 2006 13:31:34 +0000
(13:31 +0000)
committer
arun
<arun>
Sun, 26 Nov 2006 13:31:34 +0000
(13:31 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index f4e323ef320399200e767b22d88399af922c4baf..b8a714159cf6f807f92bea430f88efcec8b70cc9 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-879,14
+879,14
@@
else
}
echo "</div></div>\n";
}
}
echo "</div></div>\n";
}
-
+
/* figure out who needs to play next */
$next = $last + 1;
if ($next>=4)
$next -= 4 ;
/* if no one has played yet or we are at the start of a new trick */
/* figure out who needs to play next */
$next = $last + 1;
if ($next>=4)
$next -= 4 ;
/* if no one has played yet or we are at the start of a new trick */
- if(
strlen($history[sizeof($history)-1])==3
)
+ if(
$last<0
)
$next = $history[sizeof($history)-1][0];
/* are we trying to play a card? */
$next = $history[sizeof($history)-1][0];
/* are we trying to play a card? */
@@
-991,7
+991,7
@@
else
save_status();
}
save_status();
}
- else if(isset($_REQUEST["win"]) && s
trlen($history[sizeof($history)-1])>3
)
+ else if(isset($_REQUEST["win"]) && s
ubstr_count($history[sizeof($history)-1],":")==4
)
{ /* count points, email winner */
$win = $_REQUEST["win"];
{ /* count points, email winner */
$win = $_REQUEST["win"];