mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 20:01:25 +02:00
Save bytes
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1179 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -138,7 +138,7 @@ function get_vals($query, $column = 0) {
|
||||
*/
|
||||
function unique_idf($row, $indexes) {
|
||||
foreach ($indexes as $index) {
|
||||
if ($index["type"] == "PRIMARY" || $index["type"] == "UNIQUE") {
|
||||
if (ereg("PRIMARY|UNIQUE", $index["type"])) {
|
||||
$return = array();
|
||||
foreach ($index["columns"] as $key) {
|
||||
if (!isset($row[$key])) { // NULL is ambiguous
|
||||
|
Reference in New Issue
Block a user