Merge pull request #14846 from Tithugues/feature/replace-if-return-by-return
Replace if+return by return
This commit is contained in:
commit
8c8d570fd8
@ -60,16 +60,11 @@ class Export
|
||||
$chromeAndGreaterThan43 = PMA_USR_BROWSER_AGENT == 'CHROME'
|
||||
&& PMA_USR_BROWSER_VER >= 43; // see bug #4942
|
||||
|
||||
if (function_exists('gzencode')
|
||||
return function_exists('gzencode')
|
||||
&& ((! ini_get('zlib.output_compression')
|
||||
&& ! $this->isGzHandlerEnabled())
|
||||
|| $GLOBALS['save_on_server']
|
||||
|| $chromeAndGreaterThan43)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
&& ! $this->isGzHandlerEnabled())
|
||||
|| $GLOBALS['save_on_server']
|
||||
|| $chromeAndGreaterThan43);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -2180,7 +2180,7 @@ class Relation
|
||||
*/
|
||||
public function arePmadbTablesDefined()
|
||||
{
|
||||
if (empty($GLOBALS['cfg']['Server']['bookmarktable'])
|
||||
return ! (empty($GLOBALS['cfg']['Server']['bookmarktable'])
|
||||
|| empty($GLOBALS['cfg']['Server']['relation'])
|
||||
|| empty($GLOBALS['cfg']['Server']['table_info'])
|
||||
|| empty($GLOBALS['cfg']['Server']['table_coords'])
|
||||
@ -2198,12 +2198,7 @@ class Relation
|
||||
|| empty($GLOBALS['cfg']['Server']['savedsearches'])
|
||||
|| empty($GLOBALS['cfg']['Server']['central_columns'])
|
||||
|| empty($GLOBALS['cfg']['Server']['designer_settings'])
|
||||
|| empty($GLOBALS['cfg']['Server']['export_templates'])
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|| empty($GLOBALS['cfg']['Server']['export_templates']));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user