reverted mt_random_wrapper for single case without parameters

main
hecht 9 years ago
parent 0f967c1c68
commit 9a9cad8a76

@ -43,7 +43,7 @@ function getSpendebarometer($databasename){
function getSpenden($databasename){
$spendeline = '<table width="100%">';
$qry = mysql_query('Select * from '.$databasename.'.umsatz where kommentar like \'%Spende%\' order by datum');
$qry = mysql_query('Select * from '.$databasename.'.umsatz where kommentar like \'%Spende%\' order by datum desc');
while($row = mysql_fetch_assoc($qry)){
$spendeline .= '<tr><th class="content">'. $row['instanz'] . '</th><td class="content" width="50%">'.$row['kommentar'].'</td><td class="content">'.$row['betrag'].' '.$row['waehrung'].'</td><td class="content">'.$row['datum'].'</td></tr>';
}

@ -73,7 +73,7 @@ function createImage($id, $user) {
}
function generateImageID(){
return $id = md5((mt_random_wrapper() * time()));
return $id = md5((mt_rand() * time()));
}
function displayImage($id, $user) {
@ -115,4 +115,4 @@ function displayImage($id, $user) {
imagepng($img);
imagedestroy($img);
}
?>
?>

Loading…
Cancel
Save