Changeset 6002

Show
Ignore:
Timestamp:
07/13/08 21:40:58 (3 months ago)
Author:
p_lindheimer
Message:

#2829 check for error before assuming query result is good

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/cdr/lib/Class.Table.php

    r2614 r6002  
    8181                //$res=DbExec($link, $QUERY); 
    8282                $res = $DBHandle -> query($QUERY); 
    83                  
     83        if(DB::isError($res)) 
     84    { 
     85                        // don't know if this is the correct response but it should keep 
     86                        // #2829 from happening 
     87                        return 0; 
     88                } 
    8489 
    8590                $num = $res -> numRows(); 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads