Commit 7ae5b04f authored by Marius Cramer's avatar Marius Cramer

Fixed wrong argument passing method in alias query functions

parent bd8b728a
......@@ -264,11 +264,11 @@ class db extends mysqli
}
public function queryOne($sQuery = '') {
return $this->query_one($sQuery);
return call_user_func_array(array(&$this, 'queryOneRecord'), func_get_args());
}
public function query_one($sQuery = '') {
return $this->queryOneRecord($sQuery);
return call_user_func_array(array(&$this, 'queryOneRecord'), func_get_args());
}
/**
......@@ -297,11 +297,11 @@ class db extends mysqli
}
public function queryAll($sQuery = '') {
return $this->queryAllRecords($sQuery);
return call_user_func_array(array(&$this, 'queryAllRecords'), func_get_args());
}
public function query_all($sQuery = '') {
return $this->queryAllRecords($sQuery);
return call_user_func_array(array(&$this, 'queryAllRecords'), func_get_args());
}
/**
......
......@@ -269,11 +269,11 @@ class db extends mysqli
}
public function queryOne($sQuery = '') {
return $this->query_one($sQuery);
return call_user_func_array(array(&$this, 'queryOneRecord'), func_get_args());
}
public function query_one($sQuery = '') {
return $this->queryOneRecord($sQuery);
return call_user_func_array(array(&$this, 'queryOneRecord'), func_get_args());
}
/**
......@@ -302,11 +302,11 @@ class db extends mysqli
}
public function queryAll($sQuery = '') {
return $this->queryAllRecords($sQuery);
return call_user_func_array(array(&$this, 'queryAllRecords'), func_get_args());
}
public function query_all($sQuery = '') {
return $this->queryAllRecords($sQuery);
return call_user_func_array(array(&$this, 'queryAllRecords'), func_get_args());
}
/**
......@@ -335,7 +335,7 @@ class db extends mysqli
}
public function query_all_array($sQuery = '') {
return $this->queryAllArray($sQuery);
return call_user_func_array(array(&$this, 'queryAllArray'), func_get_args());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment