diff --git a/include/controllers/default/quick/home/index.php b/include/controllers/default/quick/home/index.php index 281484966..9ed44ef4b 100644 --- a/include/controllers/default/quick/home/index.php +++ b/include/controllers/default/quick/home/index.php @@ -25,7 +25,7 @@ class Controller_home extends Crunchbutton_Controller_Account { $justMineOrders = ( c::db()->escape( c::getPagePiece( 0 ) ) == 'mine' ); - $hours = c::getPagePiece( 1 ) ? c::getPagePiece( 1 ) : 24; + $hours = c::getPagePiece( 1 ) ? c::getPagePiece( 1 ) : 12; $orders = Order::deliveryOrders( $hours, ( c::db()->escape( c::getPagePiece( 0 ) ) == 'all' ) ); diff --git a/include/library/Crunchbutton/Order.php b/include/library/Crunchbutton/Order.php index 4f46cd878..2db2d636f 100644 --- a/include/library/Crunchbutton/Order.php +++ b/include/library/Crunchbutton/Order.php @@ -717,7 +717,7 @@ class Crunchbutton_Order extends Cana_Table { $where .= ' AND o.delivery_service = 1 '; $where .= ' AND date > DATE_SUB( NOW(), INTERVAL ' . $interval . ' )'; - $query = 'SELECT DISTINCT( o.id_order ) id, o.* FROM `order` o ' . $where . ' ORDER BY o.id_order DESC LIMIT 30'; + $query = 'SELECT DISTINCT( o.id_order ) id, o.* FROM `order` o ' . $where . ' ORDER BY o.id_order'; return Order::q( $query ); }