remove unused variables
This commit is contained in:
parent
f05801bdb8
commit
ed94a77259
@ -59,7 +59,7 @@ function PMA_getFileSelectOptions($dir, $extensions = '', $active = '')
|
||||
return false;
|
||||
}
|
||||
$result = '';
|
||||
foreach ($list as $key => $val) {
|
||||
foreach ($list as $val) {
|
||||
$result .= '<option value="'. htmlspecialchars($val) . '"';
|
||||
if ($val == $active) {
|
||||
$result .= ' selected="selected"';
|
||||
|
||||
@ -828,7 +828,6 @@ function PMA_analyzeTable(&$table)
|
||||
|
||||
/* Temp vars */
|
||||
$curr_type = NONE;
|
||||
$curr_size = 0;
|
||||
|
||||
/* If the passed array is not of the correct form, do not process it */
|
||||
if (is_array($table)
|
||||
|
||||
@ -173,7 +173,7 @@ function PMA_loadFirstRow($table, $db)
|
||||
function PMA_urlParamsInEditMode($url_params, $where_clause_array, $where_clause)
|
||||
{
|
||||
if (isset($where_clause)) {
|
||||
foreach ($where_clause_array as $key_id => $where_clause) {
|
||||
foreach ($where_clause_array as $where_clause) {
|
||||
$url_params['where_clause'] = trim($where_clause);
|
||||
}
|
||||
}
|
||||
@ -2102,7 +2102,7 @@ function PMA_transformEditedValues($db, $table,
|
||||
= $transformation_plugin->applyTransformation(
|
||||
$column_data,
|
||||
$transform_options,
|
||||
$meta = ''
|
||||
''
|
||||
);
|
||||
}
|
||||
} // end of loop for each transformation cell
|
||||
|
||||
@ -106,7 +106,7 @@ function PMA_getJsValue($key, $value, $escape = true)
|
||||
$result .= $value;
|
||||
} elseif (is_array($value)) {
|
||||
$result .= '[';
|
||||
foreach ($value as $id => $val) {
|
||||
foreach ($value as $val) {
|
||||
$result .= PMA_formatJsVal($val) . ",";
|
||||
}
|
||||
$result .= "];\n";
|
||||
|
||||
@ -344,7 +344,6 @@ function PMA_SQP_parse($sql)
|
||||
$startquotepos = $count2;
|
||||
$quotetype = $c;
|
||||
$count2++;
|
||||
$escaped = false;
|
||||
$pos = $count2;
|
||||
$oldpos = 0;
|
||||
do {
|
||||
@ -629,7 +628,6 @@ function PMA_SQP_parse($sql)
|
||||
} else {
|
||||
// Bad luck, lets split it up more
|
||||
$first = $punct_data[0];
|
||||
$first2 = $punct_data[0] . $punct_data[1];
|
||||
$last2 = $punct_data[$l - 2] . $punct_data[$l - 1];
|
||||
$last = $punct_data[$l - 1];
|
||||
if (($first == ',') || ($first == ';') || ($first == '.') || ($first == '*')) {
|
||||
|
||||
@ -97,7 +97,6 @@ function PMA_getZipContents($file, $specific_entry = null)
|
||||
function PMA_findFileFromZipArchive ($file_regexp, $file)
|
||||
{
|
||||
$zip_handle = zip_open($file);
|
||||
$found = false;
|
||||
if (is_resource($zip_handle)) {
|
||||
$entry = zip_read($zip_handle);
|
||||
while (is_resource($entry)) {
|
||||
@ -124,7 +123,6 @@ function PMA_getNoOfFilesInZip($file)
|
||||
{
|
||||
$count = 0;
|
||||
$zip_handle = zip_open($file);
|
||||
$found = false;
|
||||
if (is_resource($zip_handle)) {
|
||||
$entry = zip_read($zip_handle);
|
||||
while (is_resource($entry)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user