Fix for PHP < 5.5

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Marc Delisle 2015-05-08 10:56:00 -04:00
parent e60278b414
commit 4c5592e632

View File

@ -5172,7 +5172,10 @@ class PMA_DisplayResults
}
/* Create link to download */
if (! empty($this->__get('db')) && ! empty($meta->orgtable)) {
// in PHP < 5.5, empty() only checks variables
$tmpdb = $this->__get('db');
if (! empty($tmpdb) && ! empty($meta->orgtable)) {
$result = '<a href="tbl_get_field.php'
. PMA_URL_getCommon($url_params)
. '" class="disableAjax">'