mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Allow for all fields from a single row without a 'where' clause.
This commit is contained in:
parent
c4bc3cda63
commit
0f8210d6c2
@ -359,7 +359,7 @@ class e_db_mysql
|
||||
* @param boolean $multi if true, fetch all (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
|
||||
if(empty($table))
|
||||
@ -407,7 +407,8 @@ class e_db_mysql
|
||||
|
||||
case 'multi':
|
||||
if(!$this->select($table, $fields, $where, $noWhere))
|
||||
{var_dump($this->getLastQuery());
|
||||
{
|
||||
var_dump($this->getLastQuery());
|
||||
return array();
|
||||
}
|
||||
$ret = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user