Fixes sql error in payment listing.
authorStéphane Jacob <sj@m4x.org>
Thu, 20 Oct 2011 13:27:51 +0000 (15:27 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 21 Oct 2011 08:34:13 +0000 (10:34 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/payment.php

index 6f4ed7f..4a28ef3 100644 (file)
@@ -452,7 +452,7 @@ class PaymentModule extends PLModule
         $trans = array();
         $event = array();
         if (may_update()) {
-            static $orders = array('timestamp' => 'p', 'directory_name' => 'a', 'promo' => 'pd', 'comment' => 'p', 'amount' => 'p');
+            static $orders = array('ts_confirmed' => 'p', 'directory_name' => 'a', 'promo' => 'pd', 'comment' => 'p', 'amount' => 'p');
 
             if (Get::has('order_id') && Get::has('order') && array_key_exists(Get::v('order'), $orders)) {
                 $order_id = Get::i('order_id');