Skip to content

Commit

Permalink
Release version 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
FaaPz committed Oct 7, 2015
1 parent e2aa1dd commit a0c2632
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### Changelog

##### v1.8.1
+ Updated `StatementContainer` class with:
- Minor fix `setPlaceholders()` method

##### v1.8.0
+ [PSR-2 coding style guide](http://www.php-fig.org/psr/psr-2/) adopted
+ Updated `InsertStatement` class with:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "slim/pdo",
"description": "PDO database library for Slim Framework",
"version": "1.8.0",
"version": "1.8.1",
"type": "library",
"keywords": ["pdo", "database", "slim", "framework"],
"homepage": "https://github.com/FaaPz/Slim-PDO",
Expand Down
2 changes: 2 additions & 0 deletions src/PDO/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public function update(array $pairs)
}

/**
* @param null $table
*
* @return DeleteStatement
*/
public function delete($table = null)
Expand Down
2 changes: 1 addition & 1 deletion src/PDO/Statement/StatementContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ protected function getPlaceholders()
protected function setPlaceholders(array $values)
{
foreach ($values as $value) {
$this->placeholders[] = $this->setPlaceholder('?', sizeof($value));
$this->placeholders[] = $this->setPlaceholder('?', is_null($value) ? 1 : sizeof($value));
}
}

Expand Down

0 comments on commit a0c2632

Please sign in to comment.