Skip to content

Commit 7ae5b04

Browse files
author
Marius Cramer
committed
Fixed wrong argument passing method in alias query functions
1 parent bd8b728 commit 7ae5b04

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

interface/lib/classes/db_mysql.inc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ public function queryOneRecord($sQuery = '') {
264264
}
265265

266266
public function queryOne($sQuery = '') {
267-
return $this->query_one($sQuery);
267+
return call_user_func_array(array(&$this, 'queryOneRecord'), func_get_args());
268268
}
269269

270270
public function query_one($sQuery = '') {
271-
return $this->queryOneRecord($sQuery);
271+
return call_user_func_array(array(&$this, 'queryOneRecord'), func_get_args());
272272
}
273273

274274
/**
@@ -297,11 +297,11 @@ public function queryAllRecords($sQuery = '') {
297297
}
298298

299299
public function queryAll($sQuery = '') {
300-
return $this->queryAllRecords($sQuery);
300+
return call_user_func_array(array(&$this, 'queryAllRecords'), func_get_args());
301301
}
302302

303303
public function query_all($sQuery = '') {
304-
return $this->queryAllRecords($sQuery);
304+
return call_user_func_array(array(&$this, 'queryAllRecords'), func_get_args());
305305
}
306306

307307
/**

server/lib/classes/db_mysql.inc.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ public function queryOneRecord($sQuery = '') {
269269
}
270270

271271
public function queryOne($sQuery = '') {
272-
return $this->query_one($sQuery);
272+
return call_user_func_array(array(&$this, 'queryOneRecord'), func_get_args());
273273
}
274274

275275
public function query_one($sQuery = '') {
276-
return $this->queryOneRecord($sQuery);
276+
return call_user_func_array(array(&$this, 'queryOneRecord'), func_get_args());
277277
}
278278

279279
/**
@@ -302,11 +302,11 @@ public function queryAllRecords($sQuery = '') {
302302
}
303303

304304
public function queryAll($sQuery = '') {
305-
return $this->queryAllRecords($sQuery);
305+
return call_user_func_array(array(&$this, 'queryAllRecords'), func_get_args());
306306
}
307307

308308
public function query_all($sQuery = '') {
309-
return $this->queryAllRecords($sQuery);
309+
return call_user_func_array(array(&$this, 'queryAllRecords'), func_get_args());
310310
}
311311

312312
/**
@@ -335,7 +335,7 @@ public function queryAllArray($sQuery = '') {
335335
}
336336

337337
public function query_all_array($sQuery = '') {
338-
return $this->queryAllArray($sQuery);
338+
return call_user_func_array(array(&$this, 'queryAllArray'), func_get_args());
339339
}
340340

341341

0 commit comments

Comments
 (0)