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 .= ''. $row['instanz'] . ' | '.$row['kommentar'].' | '.$row['betrag'].' '.$row['waehrung'].' | '.$row['datum'].' |
';
}
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
+?>