Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed May 13, 2014
2 parents 9511e84 + d0aeb9e commit eecb8f9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libraries/relation.lib.php
Expand Up @@ -1233,13 +1233,10 @@ function PMA_getForeignData(
$f_query_limit = isset($foreign_limit) ? $foreign_limit : '';

if (!empty($foreign_filter)) {
$res = $GLOBALS['dbi']->query(
$the_total = $GLOBALS['dbi']->fetchValue(
'SELECT COUNT(*)' . $f_query_from . $f_query_filter
);
if ($res) {
$the_total = $GLOBALS['dbi']->fetchValue($res);
@$GLOBALS['dbi']->freeResult($res);
} else {
if ($the_total === false) {
$the_total = 0;
}
}
Expand Down

0 comments on commit eecb8f9

Please sign in to comment.