1
0
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:
Cameron 2012-11-27 19:57:34 -08:00
parent c4bc3cda63
commit 0f8210d6c2

View File

@ -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();