- Timestamp:
- 04/15/10 13:28:42 (11 years ago)
- Location:
- trunk/server/www
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/www/app/models/gallery.php
r350 r358 231 231 )); 232 232 233 if (empty($gallery)) { 234 return array(); 235 } 236 233 237 $result = $this->GalleriesRequest->find('all', array( 234 238 'conditions' => array('GalleriesRequest.gallery_id' => $id), … … 236 240 )); 237 241 $request_ids = Set::extract('/GalleriesRequest/request_id', $result); 238 239 if (empty($result)) {240 return array();241 }242 242 243 243 $result = $this->query('SELECT DISTINCT `GalleriesRequest`.`request_id` … … 291 291 ), 292 292 )); 293 294 if (empty($gallery)) { 295 return array( 296 'gallery' => array(), 297 'applications' => array(), 298 'path' => array(), 299 'abbreviate' => false, 300 'isTestsuite' => false, 301 ); 302 } 293 303 294 304 // Find out if this test suite needs to be abbreviated -
trunk/server/www/cake/libs/model/datasources/dbo_source.php
r5 r358 329 329 */ 330 330 function fetchAll($sql, $cache = true, $modelName = null) { 331 // Forcefully kill the SQL query cache 332 // NOTE: This is a hack 333 // -- 334 // Sander Marechal 335 $cache = false; 336 331 337 if ($cache && isset($this->_queryCache[$sql])) { 332 338 if (preg_match('/^\s*select/i', $sql)) {
Note: See TracChangeset
for help on using the changeset viewer.