Show
Ignore:
Timestamp:
05/14/12 17:08:49 (1 year ago)
Author:
john@erba.tv
Message:

correctly handle connect errors (connid is not explicitly reset by mysql
addon on error, so need to reset before trying connection)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contributed_modules/modules/dynroute/functions.inc.php

    r14078 r14079  
    143143          if ($item['mysql_host']!='') 
    144144          { 
     145            $ext->add($id, 's', '', new ext_setvar('connid', '""')); 
    145146                                          $ext->add($id, 's', '', new ext_mysql_connect('connid', $item['mysql_host'],  $item['mysql_username'],  $item['mysql_password'],  $item['mysql_dbname'])); 
    146147            $ext->add($id, 's', '', new ext_gotoif('$["${connid}" = ""]',$id.',1,1'));