Skip to content

Commit

Permalink
Simplified select method since the object is being rehydrated
Browse files Browse the repository at this point in the history
  • Loading branch information
andela-aonyango committed Feb 26, 2016
1 parent c88c982 commit a5b1983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database.php
Expand Up @@ -96,9 +96,9 @@ public function execute()
* @param string $table The name of the table to query
* @param $where The condition to be used when querying
*/
public function select($table, $where = "", $fields = "*")
public function select($table, $where = "")
{
$query = "SELECT $fields FROM $table"
$query = "SELECT * FROM $table"
. ($where ? " WHERE $where " : "");

$this->prepare($query);
Expand Down

0 comments on commit a5b1983

Please sign in to comment.