mirror of
https://github.com/vrana/adminer.git
synced 2025-08-18 20:31:19 +02:00
Make select(..., , , ) optional
This commit is contained in:
@@ -105,7 +105,7 @@ if (isset($_GET["elastic"])) {
|
||||
|
||||
class Min_Driver extends Min_SQL {
|
||||
|
||||
function select($table, $select, $where, $group, $order, $limit, $page, $print = false) {
|
||||
function select($table, $select, $where, $group, $order = array(), $limit = 1, $page = 0, $print = false) {
|
||||
global $adminer;
|
||||
$data = array();
|
||||
$query = "$table/_search";
|
||||
|
@@ -120,7 +120,7 @@ if (isset($_GET["mongo"])) {
|
||||
return ($value === null ? $value : parent::quote($value));
|
||||
}
|
||||
|
||||
function select($table, $select, $where, $group, $order, $limit, $page, $print = false) {
|
||||
function select($table, $select, $where, $group, $order = array(), $limit = 1, $page = 0, $print = false) {
|
||||
$select = ($select == array("*")
|
||||
? array()
|
||||
: array_fill_keys($select, true)
|
||||
|
@@ -150,7 +150,7 @@ if (isset($_GET["simpledb"])) {
|
||||
return $return;
|
||||
}
|
||||
|
||||
function select($table, $select, $where, $group, $order, $limit, $page, $print = false) {
|
||||
function select($table, $select, $where, $group, $order = array(), $limit = 1, $page = 0, $print = false) {
|
||||
global $connection;
|
||||
$connection->next = $_GET["next"];
|
||||
$return = parent::select($table, $select, $where, $group, $order, $limit, $page, $print);
|
||||
|
Reference in New Issue
Block a user