Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
catfan committed May 11, 2017
2 parents 62b1f34 + 49fa052 commit a01285c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![](https://cloud.githubusercontent.com/assets/1467904/19835326/ca62bc36-9ebd-11e6-8b37-7240d76319cd.png)

## [Medoo](http://medoo.in)
## [Medoo](https://medoo.in)

[![Total Downloads](https://poser.pugx.org/catfan/medoo/downloads)](https://packagist.org/packages/catfan/medoo)
[![Latest Stable Version](https://poser.pugx.org/catfan/medoo/v/stable)](https://packagist.org/packages/catfan/medoo)
Expand Down
9 changes: 7 additions & 2 deletions src/Medoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
* Medoo database framework
* https://medoo.in
* Version 1.4
* Version 1.4.1
*
* Copyright 2017, Angel Lai
* Released under the MIT license
Expand Down Expand Up @@ -272,7 +272,7 @@ public function query($query, $map = [])
return $this->exec($query, $map);
}

public function exec($query, $map)
public function exec($query, $map = [])
{
if ($this->debug_mode)
{
Expand Down Expand Up @@ -932,6 +932,11 @@ protected function selectContext($table, &$map, $join, &$columns = null, $where

protected function columnMap($columns, &$stack)
{
if ($columns === '*')
{
return $stack;
}

foreach ($columns as $key => $value)
{
if (is_int($key))
Expand Down

0 comments on commit a01285c

Please sign in to comment.