Topic: Bug in flexibleAccess Contructor (Read 836 times)
Bill Cosby is my Father
Posts: 4
28 credits Members referred : 0
« on: Feb 27, 2011, 12:48:33 pm »
It's about this piece of code
Code:
if ( !$this->dbConn ) ? die(mysql_error($this->dbConn));
The if statement will be entered if $this->dbConn equals false. But mysql_error() does not accept a boolean as parameter. An error like this will be thrown.
Code:
Warning: mysql_error() expects parameter 1 to be resource, boolean given in XXXX on line 85
Destructive
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=11380