Changeset 25020

Show
Ignore:
Timestamp:
02/08/10 10:33:03 (7 months ago)
Author:
rambo
Message:

fix #1636 by making sure the guids array has some value in it

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/ragnaroek/midcom/net.nemein.calendar/viewer.php

    r24773 r25020  
    634634            unset($mc); 
    635635            $guids = array_keys($keys); 
     636            if (empty($guids)) 
     637            { 
     638                // array constraint cannot be empty, see #1636 
     639                $guids[] = 'dummy'; 
     640            } 
    636641            $qb->add_constraint('guid', 'IN', $guids); 
    637642            unset($keys, $guids);