Merge branch 'master' into storageareas
This commit is contained in:
commit
875bc3caf9
|
@ -1168,6 +1168,9 @@ class CakeResponse {
|
||||||
if ($modifiedSince) {
|
if ($modifiedSince) {
|
||||||
$timeMatches = strtotime($this->modified()) === strtotime($modifiedSince);
|
$timeMatches = strtotime($this->modified()) === strtotime($modifiedSince);
|
||||||
}
|
}
|
||||||
|
if (!isset($etagMatches, $timeMatches)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$checks = compact('etagMatches', 'timeMatches');
|
$checks = compact('etagMatches', 'timeMatches');
|
||||||
if (empty($checks)) {
|
if (empty($checks)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -95,13 +95,12 @@ class Group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} # end if options
|
} # end if options
|
||||||
$groups = array();
|
|
||||||
$result = dbQuery($sql, $values);
|
$results = dbFetchAll($sql, NULL, $values);
|
||||||
$results = $result->fetchALL(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, 'Group');
|
if ( $results ) {
|
||||||
foreach ( $results as $row => $obj ) {
|
return array_map( function($row){ return new Group($row); }, $results );
|
||||||
$groups[] = $obj;
|
|
||||||
}
|
}
|
||||||
return $groups;
|
return array();
|
||||||
} # end find()
|
} # end find()
|
||||||
|
|
||||||
public static function find_one($parameters = null, $options = null) {
|
public static function find_one($parameters = null, $options = null) {
|
||||||
|
|
Loading…
Reference in New Issue