Ticket #2784: ticket_2784.diff

File ticket_2784.diff, 0.6 kB (added by kgarrison, 6 months ago)

changed error output to non debuging string

  • db_connect.php

    old new  
    6262// if connection failed show error 
    6363// don't worry about this for now, we get to it in the errors section 
    6464if(DB::isError($db)) { 
    65         die_freepbx($db->getDebugInfo());  
     65        die_freepbx($db->getMessage());  
    6666} 
    6767 
    68 //** define an error handler that doesnt just print out sql queries (and thus possibly passwords) by default 
    69 function fatal() { 
    70   echo "There was a fatal error"; 
    71 }; 
    72  
    7368// Now send or delete warning wrt to default passwords: 
    7469// 
    7570$nt = notifications::create($db); 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads