[TYPO3-german] WM-Tippspiel-Bug in Extension WorldCup
Christoph Mayer
typo3 at php-design.de
Wed Jun 14 10:35:39 CEST 2006
Hallo Christoph,
ich habe die Mail an den Entwickler weitergeleitet und er meint:
"da muss was an der serverzeit falsch sein"
function mayBetOnGame($uid) {
if (!$this->loggedIn) {
return false;
}
$sql = "SELECT g.uid
FROM tx_worldcup_games g
WHERE g.deleted = 0
AND g.playtime >
".time()."
LIMIT 1";
$res=$GLOBALS['TYPO3_DB']->sql_query($sql) OR
DIE(mysql_error());
while ($r = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
return true;
}
return false;
}
Gruß
- Christoph -
More information about the TYPO3-german
mailing list