Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	README.markdown
  • Loading branch information
treffynnon committed Nov 29, 2012
2 parents ceb24a8 + 2237d73 commit 7f38e9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ Changelog
* Add query logging to `delete_many` [[tag](https://github.com/tag)]
* Add `is_new` method - closes issue #85

#### 1.2.3 - release 2012-11-28

* Fix issue #78 - remove use of PHP 5.3 static call

#### 1.2.2 - release 2012-11-15

* Fix bug where input parameters were sent as part-indexed, part associative

#### 1.2.1 - release 2012-11-15

* Fix minor bug caused by IdiormStringException not extending Exception
Expand Down
4 changes: 2 additions & 2 deletions idiorm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ public function save() {
$query = array();

// remove any expression fields as they are already baked into the query
$values = array_diff_key($this->_dirty_fields, $this->_expr_fields);
$values = array_values(array_diff_key($this->_dirty_fields, $this->_expr_fields));

if (!$this->_is_new) { // UPDATE
// If there are no dirty values, do nothing
Expand Down Expand Up @@ -1453,7 +1453,7 @@ public static function value($subject) {
* @return string
*/
public static function str_replace_outside_quotes($search, $replace, $subject) {
return static::value($subject)->replace_outside_quotes($search, $replace);
return self::value($subject)->replace_outside_quotes($search, $replace);
}

/**
Expand Down

0 comments on commit 7f38e9c

Please sign in to comment.