Changeset 350


Ignore:
Timestamp:
04/13/10 09:14:42 (9 years ago)
Author:
sander
Message:

Do not regenerate viewData for empty or non-existant galleries

Location:
trunk/server/www/app/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/models/gallery.php

    r345 r350  
    236236                )); 
    237237                $request_ids = Set::extract('/GalleriesRequest/request_id', $result); 
     238 
     239                if (empty($result)) { 
     240                        return array(); 
     241                } 
    238242 
    239243                $result = $this->query('SELECT DISTINCT `GalleriesRequest`.`request_id` 
  • trunk/server/www/app/models/testsuite.php

    r347 r350  
    303303                $suites = $this->find('all', $options); 
    304304                foreach ($suites as $suite) { 
     305                        if (!$suite['Testsuite']['gallery_id']) { 
     306                                continue; 
     307                        } 
     308 
    305309                        $requests = array_merge( 
    306310                                $requests, 
Note: See TracChangeset for help on using the changeset viewer.