From 0a37b28e0ae9df87db708e2639c498256d8a88f8 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 30 Oct 2014 10:57:33 -0400 Subject: [PATCH] Fix undefined offset notice Signed-off-by: Marc Delisle --- libraries/DBQbe.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/DBQbe.class.php b/libraries/DBQbe.class.php index 0a2c270a48..15e8e4438f 100644 --- a/libraries/DBQbe.class.php +++ b/libraries/DBQbe.class.php @@ -1117,8 +1117,10 @@ class PMA_DbQbe continue; } - $orderby_clauses[] = $this->_curField[$column_index] . ' ' - . $this->_curSort[$column_index]; + if (! empty($this->_curSort[$column_index])) { + $orderby_clauses[] = $this->_curField[$column_index] . ' ' + . $this->_curSort[$column_index]; + } } // end for if ($orderby_clauses) { $orderby_clause = 'ORDER BY '