// php notice

This commit is contained in:
Rémi Gaillard
2013-02-12 12:06:09 +01:00
parent d007136149
commit ba3f3b88b5

View File

@@ -2046,9 +2046,10 @@ class AdminControllerCore extends Controller
{
$order_by_split = preg_split('/[.!]/', $order_by);
$order_by = pSQL($order_by_split[0]).'.`'.pSQL($order_by_split[1]).'`';
$this->_orderBy = (isset($order_by_split) && isset($order_by_split[1])) ? $order_by_split[1] : $order_by;
}
$this->_orderBy = $order_by_split[1];
else
$this->_orderBy = $order_by;
$this->_orderWay = Tools::strtoupper($order_way);
/* SQL table : orders, but class name is Order */