mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 16:17:14 +02:00
Allow for all fields from a single row without a 'where' clause.
This commit is contained in:
@@ -359,7 +359,7 @@ class e_db_mysql
|
|||||||
* @param boolean $multi if true, fetch all (multi mode)
|
* @param boolean $multi if true, fetch all (multi mode)
|
||||||
* @param string $indexField field name to be used for indexing when in multi mode
|
* @param string $indexField field name to be used for indexing when in multi mode
|
||||||
*/
|
*/
|
||||||
public function retrieve($table, $fields = '*', $where, $noWhere = false, $multi = false, $indexField = null)
|
public function retrieve($table, $fields = '*', $where=null, $noWhere = false, $multi = false, $indexField = null)
|
||||||
{
|
{
|
||||||
// fetch mode
|
// fetch mode
|
||||||
if(empty($table))
|
if(empty($table))
|
||||||
@@ -407,7 +407,8 @@ class e_db_mysql
|
|||||||
|
|
||||||
case 'multi':
|
case 'multi':
|
||||||
if(!$this->select($table, $fields, $where, $noWhere))
|
if(!$this->select($table, $fields, $where, $noWhere))
|
||||||
{var_dump($this->getLastQuery());
|
{
|
||||||
|
var_dump($this->getLastQuery());
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
$ret = array();
|
$ret = array();
|
||||||
|
Reference in New Issue
Block a user