Skip to content
Permalink
Browse files

Removing unused statement, thanks jrbasso

  • Loading branch information...
lorenzo committed Jan 29, 2010
1 parent 2e49a96 commit 3f9813a9ec2364c5371268d6019f787f6b015a62
Showing with 1 addition and 2 deletions.
  1. +0 −1 cake/libs/model/datasources/dbo_source.php
  2. +1 −1 cake/libs/set.php
@@ -494,7 +494,6 @@ function name($data) {
return $this->startQuote . implode($this->endQuote . '.' . $this->startQuote, $items) . $this->endQuote;
}
if (preg_match('/^\w+\.\*$/', $data)) { // string.*
$items = explode('.', $data);
return $this->startQuote . str_replace('.*', $this->endQuote . '.*', $data);
}
if (preg_match('/^(\w+)\((.*)\)$/', $data, $matches)) { // Functions
@@ -789,7 +789,7 @@ function diff($val1, $val2 = null) {
if (empty($val2)) {
return (array)$val1;
}
$intersection = array_intersect_key($val1,$val2);
$intersection = array_intersect_key($val1, $val2);
while (list($key,) = each($intersection)) {
if ($val1[$key] == $val2[$key]) {
unset($val1[$key]);

0 comments on commit 3f9813a

Please sign in to comment.
You can’t perform that action at this time.