mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
Save bytes
This commit is contained in:
@@ -284,8 +284,8 @@ ORDER BY conkey, conname") as $row) {
|
||||
$row['table'] = $match2[2];
|
||||
}
|
||||
$row['target'] = array_map('trim', explode(',', $match[3]));
|
||||
$row['on_delete'] = (preg_match('~ON DELETE (' . implode('|', $on_actions) . ')~', $match[4], $match2) ? $match2[1] : '');
|
||||
$row['on_update'] = (preg_match('~ON UPDATE (' . implode('|', $on_actions) . ')~', $match[4], $match2) ? $match2[1] : '');
|
||||
$row['on_delete'] = (preg_match("~ON DELETE ($on_actions)~", $match[4], $match2) ? $match2[1] : '');
|
||||
$row['on_update'] = (preg_match("~ON UPDATE ($on_actions)~", $match[4], $match2) ? $match2[1] : '');
|
||||
$return[$row['conname']] = $row;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user