diff --git a/db_tables_search.php b/db_tables_search.php index 87b8fe2700..6dbb1a4e8f 100644 --- a/db_tables_search.php +++ b/db_tables_search.php @@ -1,6 +1,10 @@ $table) { - if (strpos($key, $table_term) !== FALSE) { + if (strpos($key, $table_term) !== false) { $link = '
  • '; - $attr = array('id' => 'icon_' . htmlspecialchars($table_db . '.' . $table['Name'])); + $attr = array( + 'id' => 'icon_' . htmlspecialchars($table_db . '.' . $table['Name']) + ); if (PMA_Table::isView($table_db, $table['Name'])) { - $link .= PMA_getImage('s_views.png', htmlspecialchars($link_title), $attr); + $link .= PMA_getImage( + 's_views.png', htmlspecialchars($link_title), $attr + ); } else { - $link .= PMA_getImage('b_browse.png', htmlspecialchars($link_title), $attr); + $link .= PMA_getImage( + 'b_browse.png', htmlspecialchars($link_title), $attr + ); } $link .= ''; // link for the table name itself @@ -36,16 +47,21 @@ foreach ($tables_full as $key => $table) { . urlencode($table['Name']) . '&pos=0'; $link .= '' + . '" id="' . htmlspecialchars($table_db . '.' . $table['Name']) + . '">' // preserve spaces in table name - . str_replace(' ', ' ', htmlspecialchars($table['disp_name'])) . ''; + . str_replace(' ', ' ', htmlspecialchars($table['disp_name'])) + . ''; $link .= '
  • ' . "\n"; $table['line'] = $link; $tables_response[] = $table; } } -PMA_ajaxResponse('', true, array('tables' => $tables_response)); \ No newline at end of file +PMA_ajaxResponse('', true, array('tables' => $tables_response)); +?>