From 393aa8e694f438712cb718014bb682cb6782d0ee Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 12 Jun 2015 18:31:02 +0530 Subject: [PATCH] Add master table only if it's not empty Signed-off-by: Madhura Jayaratne --- 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 16329f4636..8efe43b66c 100644 --- a/libraries/DBQbe.class.php +++ b/libraries/DBQbe.class.php @@ -1621,8 +1621,10 @@ class PMA_DbQbe // Will incldue master tables and all tables that can be combined into // a cluster by their relation $finalized = array(); - // Add master tables - $finalized[$master] = ''; + if (mb_strlen($master) > 0) { + // Add master tables + $finalized[$master] = ''; + } while (true) { $added = false;