Changeset 4931


Ignore:
Timestamp:
08/16/11 16:10:57 (10 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1820 - Retatório de horas expões sem resultado.r4914

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/hourReport.php

    r626 r4931  
    9595        $_SESSION['calendar']['server']['db_type'] 
    9696); 
    97 if (IsSet($_POST['CAT'])){ 
     97if (IsSet($_POST['CAT']) && IsSet($_POST['CAL'])){ 
    9898        if (!preg_match("/[a-zA-Z0-9]+/i",$_POST['CAT'][0])){ 
    9999                echo "Invalid entry:".$_POST['CAT'][0]; 
     
    125125                $query = "select cal_id,title,description,datetime,edatetime from phpgw_cal where ".(!$_POST['NORM']?"cal_type = 'H' and":" is_public = 1 and ")." owner = ".$user_id." and (category like '%,".$catid.",%' or category like '%,".$catid."' or category like '".$catid.",%' or category = '".$catid."')".(IsSet($initDate)?" and datetime > ".$initDate:""); 
    126126                if(!$db->query($query)){ 
    127                         print("<br>Query failed at host:<br>".$_SESSION['calendar']['server']['db_user']."@".$_SESSION['calendar']['server']['db_host'].":".$_SESSION['calendar']['server']['db_port']."<br>"); 
     127                        print("<br>Query failed.<br>"); 
    128128                        return; 
    129129                } 
Note: See TracChangeset for help on using the changeset viewer.