View Single Post
Old Dec 10th, 2006, 11:55 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
What is this? (rearranged for logical clarity)
if (!$dblink) 
{
   // Empty blocks are acceptable, but why?
}
elseif (!mysql_select_db($this->dbname, $dblink)) 
{
   $dblink = false;
}
That's like saying,
if ($dblink && !mysql_select_db ($this->dbname, $dblink)) $dblink = false;
Which would you rather come across, cold?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote