Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2015-08-23 19:34:42 +0300
committerMarc Delisle <marc@infomarc.info>2015-08-23 19:34:42 +0300
commit4b0cd53e75ea855562a0ffed547e13982add0290 (patch)
tree9a5a1d8700c60263f1b2389f876bf1f4aa36d532 /db_tracking.php
parent79cb5f3c14cd4d69a0b4cb6ca95571a7dd1084ce (diff)
Add missing type check
Fix parameter type Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'db_tracking.php')
-rw-r--r--db_tracking.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/db_tracking.php b/db_tracking.php
index a4a9258831..42db66199f 100644
--- a/db_tracking.php
+++ b/db_tracking.php
@@ -109,7 +109,7 @@ $all_tables_query = ' SELECT table_name, MAX(version) as version FROM ' .
$all_tables_result = PMA_queryAsControlUser($all_tables_query);
// If a HEAD version exists
-if ($GLOBALS['dbi']->numRows($all_tables_result) > 0) {
+if (is_object($all_tables_result) && $GLOBALS['dbi']->numRows($all_tables_result) > 0) {
PMA_displayTrackedTables(
$GLOBALS['db'], $all_tables_result, $url_query, $pmaThemeImage,
$text_dir, $cfgRelation