mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Correct redirect after change in where field
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1359 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -159,6 +159,19 @@ function unique_array($row, $indexes) {
|
||||
return $return;
|
||||
}
|
||||
|
||||
/** Get query string for unique identifier of a row
|
||||
* @param array
|
||||
* @param array result of indexes()
|
||||
* @return string
|
||||
*/
|
||||
function unique_idf($row, $indexes) {
|
||||
$return = "";
|
||||
foreach (unique_array($row, $indexes) as $key => $val) {
|
||||
$return .= "&" . (isset($val) ? urlencode("where[" . bracket_escape($key) . "]") . "=" . urlencode($val) : "null%5B%5D=" . urlencode($key));
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
/** Create SQL condition from parsed query string
|
||||
* @param array parsed query string
|
||||
* @return string
|
||||
|
Reference in New Issue
Block a user