From 9a9cad8a763f00207964c6f5dddf64de820b33a6 Mon Sep 17 00:00:00 2001 From: hecht Date: Tue, 1 Sep 2015 22:31:38 +0000 Subject: [PATCH] reverted mt_random_wrapper for single case without parameters --- ag/include/donate.inc.php | 2 +- ag/include/img.inc.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ag/include/donate.inc.php b/ag/include/donate.inc.php index a541b92..3556435 100644 --- a/ag/include/donate.inc.php +++ b/ag/include/donate.inc.php @@ -43,7 +43,7 @@ function getSpendebarometer($databasename){ function getSpenden($databasename){ $spendeline = ''; - $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 .= ''; } diff --git a/ag/include/img.inc.php b/ag/include/img.inc.php index 2ef4662..a750723 100644 --- a/ag/include/img.inc.php +++ b/ag/include/img.inc.php @@ -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); } -?> \ No newline at end of file +?>
'. $row['instanz'] . ''.$row['kommentar'].''.$row['betrag'].' '.$row['waehrung'].''.$row['datum'].'