Skip to content
Snippets Groups Projects
Commit 7ae5b04f authored by Marius Cramer's avatar Marius Cramer
Browse files

Fixed wrong argument passing method in alias query functions

parent bd8b728a
No related branches found
No related tags found
No related merge requests found
...@@ -264,11 +264,11 @@ class db extends mysqli ...@@ -264,11 +264,11 @@ class db extends mysqli
} }
public function queryOne($sQuery = '') { 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 = '') { 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 ...@@ -297,11 +297,11 @@ class db extends mysqli
} }
public function queryAll($sQuery = '') { public function queryAll($sQuery = '') {
return $this->queryAllRecords($sQuery); return call_user_func_array(array(&$this, 'queryAllRecords'), func_get_args());
} }
public function query_all($sQuery = '') { 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 ...@@ -269,11 +269,11 @@ class db extends mysqli
} }
public function queryOne($sQuery = '') { 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 = '') { 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 ...@@ -302,11 +302,11 @@ class db extends mysqli
} }
public function queryAll($sQuery = '') { public function queryAll($sQuery = '') {
return $this->queryAllRecords($sQuery); return call_user_func_array(array(&$this, 'queryAllRecords'), func_get_args());
} }
public function query_all($sQuery = '') { 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 ...@@ -335,7 +335,7 @@ class db extends mysqli
} }
public function query_all_array($sQuery = '') { public function query_all_array($sQuery = '') {
return $this->queryAllArray($sQuery); return call_user_func_array(array(&$this, 'queryAllArray'), func_get_args());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment