Support #173

Should $check be $res?

Added by Bitnetix about 1 year ago. Updated about 1 year ago.

Status:Closed Start:08/05/2009
Priority:Low Due date:
Assigned to:- % Done:

100%

Category:-
Target version:-

Description

Line 29 should be $res not $check, else the following Apache errors show up:

PHP Notice:  Undefined variable: check in /var/www/html/admin/modules/superfecta/bin/source-Superfecta_Cache.php on line 29

The code:

    //query cache
    $sql = "SELECT callerid FROM superfectacache WHERE number = '$thenumber'";
    $res = $db->getOne($sql);
    if (DB::IsError($check))
    {
        die_freepbx( "Error: " . $res->getMessage() .  "<br>");
    }

History

Updated by jacobsj about 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

This bug has been corrected.

Also available in: Atom PDF