projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CLEANUP: make the code look a bit nicer
[e-DoKo.git]
/
functions.php
diff --git
a/functions.php
b/functions.php
index deadf34fdb03ea93fc61637ee4f1298bfea85b05..e30c81753fc74485eb301f174f5fa07d48d32e64 100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-309,7
+309,7
@@
function create_array_of_random_numbers($useridA,$useridB,$useridC,$useridD)
/* check if we can find a game were non of the player was involved and return
* cards insted
*/
/* check if we can find a game were non of the player was involved and return
* cards insted
*/
- $userstr =
implode(",",array($useridA,$useridB,$useridC,$useridD))
;
+ $userstr =
"'".implode("','",array($useridA,$useridB,$useridC,$useridD))."'"
;
$randomnumbers = DB_get_unused_randomnumbers($userstr);
$randomnumbers = explode(":",$randomnumbers);
$randomnumbers = DB_get_unused_randomnumbers($userstr);
$randomnumbers = explode(":",$randomnumbers);