From 0f8210d6c2c5d06428174b2db6933afb7d4f3e90 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 27 Nov 2012 19:57:34 -0800 Subject: [PATCH] Allow for all fields from a single row without a 'where' clause. --- e107_handlers/mysql_class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/e107_handlers/mysql_class.php b/e107_handlers/mysql_class.php index 26fd040eb..0e9b44a53 100644 --- a/e107_handlers/mysql_class.php +++ b/e107_handlers/mysql_class.php @@ -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();